public abstract static class JavaConstant.MethodHandle.Dispatcher.AbstractBase extends Object implements JavaConstant.MethodHandle.Dispatcher, JavaConstant.MethodHandle.Dispatcher.Initializable
JavaConstant.MethodHandle.Dispatcher.AbstractBase, JavaConstant.MethodHandle.Dispatcher.ForJava7CapableVm, JavaConstant.MethodHandle.Dispatcher.ForJava8CapableVm, JavaConstant.MethodHandle.Dispatcher.ForLegacyVm, JavaConstant.MethodHandle.Dispatcher.Initializable| Modifier and Type | Field and Description |
|---|---|
protected Method |
getDeclaringClass
A reference to
java.lang.invoke.MethodHandleInfo#getDeclaringClass. |
protected Method |
getMethodType
A reference to
java.lang.invoke.MethodHandleInfo#getMethodType. |
protected Method |
getName
A reference to
java.lang.invoke.MethodHandleInfo#getName. |
protected Method |
getReferenceKind
A reference to
java.lang.invoke.MethodHandleInfo#getReferenceKind. |
protected Method |
lookupClass
A reference to
java.lang.invoke.MethodHandles$Lookup#lookupClass method. |
protected Method |
parameterArray
A reference to
java.lang.invoke.MethodType#parameterArray. |
protected Method |
publicLookup
A reference to
java.lang.invoke.MethodHandles#publicLookup. |
protected Method |
returnType
A reference to
java.lang.invoke.MethodType#returnType. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBase(Method publicLookup,
Method getName,
Method getDeclaringClass,
Method getReferenceKind,
Method getMethodType,
Method returnType,
Method parameterArray,
Method lookupClass)
Creates a legal dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
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.
|
int |
hashCode() |
Class<?> |
lookupType(Object lookup)
Returns the lookup type of a given
java.lang.invoke.MethodHandles$Lookup instance. |
List<? extends Class<?>> |
parameterArray(Object methodType)
Returns the parameter types of the supplied method type.
|
Object |
publicLookup()
Returns a public
java.lang.invoke.MethodHandles.Lookup instance. |
Class<?> |
returnType(Object methodType)
Returns the return type of the supplied method type.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitrevealinitializeprotected final Method publicLookup
java.lang.invoke.MethodHandles#publicLookup.protected final Method getName
java.lang.invoke.MethodHandleInfo#getName.protected final Method getDeclaringClass
java.lang.invoke.MethodHandleInfo#getDeclaringClass.protected final Method getReferenceKind
java.lang.invoke.MethodHandleInfo#getReferenceKind.protected final Method getMethodType
java.lang.invoke.MethodHandleInfo#getMethodType.protected final Method returnType
java.lang.invoke.MethodType#returnType.protected final Method parameterArray
java.lang.invoke.MethodType#parameterArray.protected final Method lookupClass
java.lang.invoke.MethodHandles$Lookup#lookupClass method.protected AbstractBase(Method publicLookup, Method getName, Method getDeclaringClass, Method getReferenceKind, Method getMethodType, Method returnType, Method parameterArray, 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 Object publicLookup()
JavaConstant.MethodHandle.Dispatcher.Initializablejava.lang.invoke.MethodHandles.Lookup instance.publicLookup in interface JavaConstant.MethodHandle.Dispatcher.Initializablejava.lang.invoke.MethodHandles.Lookup instance.public Object getMethodType(Object methodHandleInfo)
JavaConstant.MethodHandle.DispatchergetMethodType in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle info to introspect.MethodType instance representing the method handle's type.public int getReferenceKind(Object methodHandleInfo)
JavaConstant.MethodHandle.DispatchergetReferenceKind in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public Class<?> getDeclaringClass(Object methodHandleInfo)
JavaConstant.MethodHandle.DispatchergetDeclaringClass in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public String getName(Object methodHandleInfo)
JavaConstant.MethodHandle.DispatchergetName in interface JavaConstant.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public Class<?> returnType(Object methodType)
JavaConstant.MethodHandle.DispatcherreturnType in interface JavaConstant.MethodHandle.DispatchermethodType - The method type to be introspected.public List<? extends Class<?>> parameterArray(Object methodType)
JavaConstant.MethodHandle.DispatcherparameterArray in interface JavaConstant.MethodHandle.DispatchermethodType - The method type to be introspected.public Class<?> lookupType(Object lookup)
JavaConstant.MethodHandle.Dispatcher.Initializablejava.lang.invoke.MethodHandles$Lookup instance.lookupType in interface JavaConstant.MethodHandle.Dispatcher.Initializablelookup - A java.lang.invoke.MethodHandles$Lookup instance.Copyright © 2014–2016. All rights reserved.