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 impleementation of 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 |
---|---|
Class<?> |
getDeclaringClass(Object methodHandleInfo)
Returns the declaring class of the supplied method handle info.
|
Object |
getMethodType(Object methodHandleInfo)
Returns a method handle info's method type.
|
String |
getName(Object methodHandleInfo)
Returns the method name of the supplied method handle info.
|
int |
getReferenceKind(Object methodHandleInfo)
Returns the reference kind of the supplied method handle info.
|
List<? extends Class<?>> |
parameterArray(Object methodType)
Returns the parameter types of the supplied method type.
|
Class<?> |
returnType(Object methodType)
Returns the return type of the supplied method type.
|
Object |
reveal(Object lookup,
Object methodHandle)
Reveals a method handle's information object.
|
Object reveal(Object lookup, 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.Object getMethodType(Object methodHandleInfo)
methodHandleInfo
- The method handle info to introspect.MethodType
instance representing the method handle's type.int getReferenceKind(Object methodHandleInfo)
methodHandleInfo
- The method handle to be introspected.Class<?> getDeclaringClass(Object methodHandleInfo)
methodHandleInfo
- The method handle to be introspected.String getName(Object methodHandleInfo)
methodHandleInfo
- The method handle to be introspected.Class<?> returnType(Object methodType)
methodType
- The method type to be introspected.Copyright © 2014–2016. All rights reserved.