protected static interface JavaConstant.MethodHandle.Dispatcher
java.lang.invoke.MethodHandle
instance.Modifier and Type | Interface and Description |
---|---|
static class |
JavaConstant.MethodHandle.Dispatcher.AbstractBase
An abstract base implementation of a dispatcher.
|
static class |
JavaConstant.MethodHandle.Dispatcher.CreationAction
A creation action for a dispatcher.
|
static class |
JavaConstant.MethodHandle.Dispatcher.ForJava7CapableVm
A dispatcher that extracts the information of a method handle by using private APIs that are available in Java 7+.
|
static class |
JavaConstant.MethodHandle.Dispatcher.ForJava8CapableVm
A dispatcher for introspecting a
java.lang.invoke.MethodHandle instance on a virtual machine that officially supports this
introspection, i.e. |
static class |
JavaConstant.MethodHandle.Dispatcher.ForLegacyVm
A dispatcher that does not support method handles at all.
|
static interface |
JavaConstant.MethodHandle.Dispatcher.Initializable
An initializable version of a dispatcher that is not yet made accessible.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getDeclaringClass(java.lang.Object methodHandleInfo)
Returns the declaring class of the supplied method handle info.
|
java.lang.Object |
getMethodType(java.lang.Object methodHandleInfo)
Returns a method handle info's method type.
|
java.lang.String |
getName(java.lang.Object methodHandleInfo)
Returns the method name of the supplied method handle info.
|
int |
getReferenceKind(java.lang.Object methodHandleInfo)
Returns the reference kind of the supplied method handle info.
|
java.util.List<? extends java.lang.Class<?>> |
parameterArray(java.lang.Object methodType)
Returns the parameter types of the supplied method type.
|
java.lang.Class<?> |
returnType(java.lang.Object methodType)
Returns the return type of the supplied method type.
|
java.lang.Object |
reveal(java.lang.Object lookup,
java.lang.Object methodHandle)
Reveals a method handle's information object.
|
java.lang.Object reveal(java.lang.Object lookup, java.lang.Object methodHandle)
lookup
- The lookup to be used for introspecting the instance.methodHandle
- The method handle to be introspected.java.lang.invoke.MethodHandleInfo
object that describes the instance.java.lang.Object getMethodType(java.lang.Object methodHandleInfo)
methodHandleInfo
- The method handle info to introspect.java.lang.invoke.MethodType
instance representing the method handle's type.int getReferenceKind(java.lang.Object methodHandleInfo)
methodHandleInfo
- The method handle to be introspected.java.lang.Class<?> getDeclaringClass(java.lang.Object methodHandleInfo)
methodHandleInfo
- The method handle to be introspected.java.lang.String getName(java.lang.Object methodHandleInfo)
methodHandleInfo
- The method handle to be introspected.java.lang.Class<?> returnType(java.lang.Object methodType)
methodType
- The method type to be introspected.java.util.List<? extends java.lang.Class<?>> parameterArray(java.lang.Object methodType)
methodType
- The method type to be introspected.