@HashCodeAndEqualsPlugin.Enhance public abstract static class JavaConstant.MethodHandle.Dispatcher.AbstractBase extends java.lang.Object implements JavaConstant.MethodHandle.Dispatcher, JavaConstant.MethodHandle.Dispatcher.Initializable
JavaConstant.MethodHandle.Dispatcher.AbstractBase, JavaConstant.MethodHandle.Dispatcher.CreationAction, JavaConstant.MethodHandle.Dispatcher.ForJava7CapableVm, JavaConstant.MethodHandle.Dispatcher.ForJava8CapableVm, JavaConstant.MethodHandle.Dispatcher.ForLegacyVm, JavaConstant.MethodHandle.Dispatcher.Initializable| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Method |
getDeclaringClass
A reference to
java.lang.invoke.MethodHandleInfo#getDeclaringClass. |
protected java.lang.reflect.Method |
getMethodType
A reference to
java.lang.invoke.MethodHandleInfo#getMethodType. |
protected java.lang.reflect.Method |
getName
A reference to
java.lang.invoke.MethodHandleInfo#getName. |
protected java.lang.reflect.Method |
getReferenceKind
A reference to
java.lang.invoke.MethodHandleInfo#getReferenceKind. |
protected java.lang.reflect.Method |
lookupClass
A reference to
java.lang.invoke.MethodHandles$Lookup#lookupClass method. |
private static java.lang.Object[] |
NO_ARGUMENTS
An empty array that can be used to indicate no arguments to avoid an allocation on a reflective call.
|
protected java.lang.reflect.Method |
parameterArray
A reference to
java.lang.invoke.MethodType#parameterArray. |
protected java.lang.reflect.Method |
publicLookup
A reference to
java.lang.invoke.MethodHandles#publicLookup. |
protected java.lang.reflect.Method |
returnType
A reference to
java.lang.invoke.MethodType#returnType. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBase(java.lang.reflect.Method publicLookup,
java.lang.reflect.Method getName,
java.lang.reflect.Method getDeclaringClass,
java.lang.reflect.Method getReferenceKind,
java.lang.reflect.Method getMethodType,
java.lang.reflect.Method returnType,
java.lang.reflect.Method parameterArray,
java.lang.reflect.Method lookupClass)
Creates a legal dispatcher.
|
| 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.lang.Class<?> |
lookupType(java.lang.Object lookup)
Returns the lookup type of a given
java.lang.invoke.MethodHandles$Lookup instance. |
java.util.List<? extends java.lang.Class<?>> |
parameterArray(java.lang.Object methodType)
Returns the parameter types of the supplied method type.
|
java.lang.Object |
publicLookup()
Returns a public
java.lang.invoke.MethodHandles.Lookup instance. |
java.lang.Class<?> |
returnType(java.lang.Object methodType)
Returns the return type of the supplied method type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrevealinitializeprivate static final java.lang.Object[] NO_ARGUMENTS
protected final java.lang.reflect.Method publicLookup
java.lang.invoke.MethodHandles#publicLookup.protected final java.lang.reflect.Method getName
java.lang.invoke.MethodHandleInfo#getName.protected final java.lang.reflect.Method getDeclaringClass
java.lang.invoke.MethodHandleInfo#getDeclaringClass.protected final java.lang.reflect.Method getReferenceKind
java.lang.invoke.MethodHandleInfo#getReferenceKind.protected final java.lang.reflect.Method getMethodType
java.lang.invoke.MethodHandleInfo#getMethodType.protected final java.lang.reflect.Method returnType
java.lang.invoke.MethodType#returnType.protected final java.lang.reflect.Method parameterArray
java.lang.invoke.MethodType#parameterArray.protected final java.lang.reflect.Method lookupClass
java.lang.invoke.MethodHandles$Lookup#lookupClass method.protected AbstractBase(java.lang.reflect.Method publicLookup,
java.lang.reflect.Method getName,
java.lang.reflect.Method getDeclaringClass,
java.lang.reflect.Method getReferenceKind,
java.lang.reflect.Method getMethodType,
java.lang.reflect.Method returnType,
java.lang.reflect.Method parameterArray,
java.lang.reflect.Method lookupClass)
publicLookup - A reference to java.lang.invoke.MethodHandles#publicLookup.getName - A reference to java.lang.invoke.MethodHandleInfo#getName.getDeclaringClass - A reference to java.lang.invoke.MethodHandleInfo#getDeclaringClass.getReferenceKind - A reference to java.lang.invoke.MethodHandleInfo#getReferenceKind.getMethodType - A reference to java.lang.invoke.MethodHandleInfo#getMethodType.returnType - A reference to java.lang.invoke.MethodType#returnType.parameterArray - A reference to java.lang.invoke.MethodType#parameterArray.lookupClass - A reference to java.lang.invoke.MethodHandles$Lookup#lookupClass method.public java.lang.Object publicLookup()
java.lang.invoke.MethodHandles.Lookup instance.publicLookup in interface JavaConstant.MethodHandle.Dispatcher.Initializablejava.lang.invoke.MethodHandles.Lookup instance.public java.lang.Object getMethodType(java.lang.Object methodHandleInfo)
getMethodType in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle info to introspect.java.lang.invoke.MethodType instance representing the method handle's type.public int getReferenceKind(java.lang.Object methodHandleInfo)
getReferenceKind in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public java.lang.Class<?> getDeclaringClass(java.lang.Object methodHandleInfo)
getDeclaringClass in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public java.lang.String getName(java.lang.Object methodHandleInfo)
getName in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public java.lang.Class<?> returnType(java.lang.Object methodType)
returnType in interface JavaConstant.MethodHandle.DispatchermethodType - The method type to be introspected.public java.util.List<? extends java.lang.Class<?>> parameterArray(java.lang.Object methodType)
parameterArray in interface JavaConstant.MethodHandle.DispatchermethodType - The method type to be introspected.public java.lang.Class<?> lookupType(java.lang.Object lookup)
java.lang.invoke.MethodHandles$Lookup instance.lookupType in interface JavaConstant.MethodHandle.Dispatcher.Initializablelookup - A java.lang.invoke.MethodHandles$Lookup instance.