Package net.bytebuddy.utility
Interface JavaConstant.MethodHandle.MethodHandleInfo
- Enclosing class:
JavaConstant.MethodHandle
@Proxied("java.lang.invoke.MethodHandleInfo")
protected static interface JavaConstant.MethodHandle.MethodHandleInfo
A dispatcher to interact with
java.lang.invoke.MethodHandleInfo
.-
Method Summary
Modifier and TypeMethodDescriptionClass
<?> getDeclaringClass
(Object value) Returns the declaring type of the method handle info.getMethodType
(Object value) Returns thejava.lang.invoke.MethodType
of the method handle info.Returns the name of the method handle info.int
getReferenceKind
(Object value) Returns the reference kind of the method handle info.revealDirect
(Object handle) Returns thejava.lang.invoke.MethodHandleInfo
of the provided method handle.
-
Method Details
-
getName
Returns the name of the method handle info.- Parameters:
value
- Thejava.lang.invoke.MethodHandleInfo
to resolve.- Returns:
- The name of the method handle info.
-
getDeclaringClass
Returns the declaring type of the method handle info.- Parameters:
value
- Thejava.lang.invoke.MethodHandleInfo
to resolve.- Returns:
- The declaring type of the method handle info.
-
getReferenceKind
Returns the reference kind of the method handle info.- Parameters:
value
- Thejava.lang.invoke.MethodHandleInfo
to resolve.- Returns:
- The reference kind of the method handle info.
-
getMethodType
Returns thejava.lang.invoke.MethodType
of the method handle info.- Parameters:
value
- Thejava.lang.invoke.MethodHandleInfo
to resolve.- Returns:
- The
java.lang.invoke.MethodType
of the method handle info.
-
revealDirect
Returns thejava.lang.invoke.MethodHandleInfo
of the provided method handle. This method was available on Java 7 but replaced by a lookup-based method in Java 8 and later.- Parameters:
handle
- Thejava.lang.invoke.MethodHandle
to resolve.- Returns:
- A
java.lang.invoke.MethodHandleInfo
to describe the supplied method handle.
-