public abstract static class JavaInstance.MethodHandle.Dispatcher.AbstractBase extends Object implements JavaInstance.MethodHandle.Dispatcher, JavaInstance.MethodHandle.Dispatcher.Initializable
JavaInstance.MethodHandle.Dispatcher.AbstractBase, JavaInstance.MethodHandle.Dispatcher.ForIntermediateVm, JavaInstance.MethodHandle.Dispatcher.ForLegacyVm, JavaInstance.MethodHandle.Dispatcher.ForModernVm, JavaInstance.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 |
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)
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() |
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 AbstractBase(Method publicLookup, Method getName, Method getDeclaringClass, Method getReferenceKind, Method getMethodType, Method returnType, Method parameterArray)
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.public Object publicLookup()
JavaInstance.MethodHandle.Dispatcher.Initializablejava.lang.invoke.MethodHandles.Lookup instance.publicLookup in interface JavaInstance.MethodHandle.Dispatcher.Initializablejava.lang.invoke.MethodHandles.Lookup instance.public Object getMethodType(Object methodHandleInfo)
JavaInstance.MethodHandle.DispatchergetMethodType in interface JavaInstance.MethodHandle.DispatchermethodHandleInfo - The method handle info to introspect.MethodType instance representing the method handle's type.public int getReferenceKind(Object methodHandleInfo)
JavaInstance.MethodHandle.DispatchergetReferenceKind in interface JavaInstance.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public Class<?> getDeclaringClass(Object methodHandleInfo)
JavaInstance.MethodHandle.DispatchergetDeclaringClass in interface JavaInstance.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public String getName(Object methodHandleInfo)
JavaInstance.MethodHandle.DispatchergetName in interface JavaInstance.MethodHandle.DispatchermethodHandleInfo - The method handle to be introspected.public Class<?> returnType(Object methodType)
JavaInstance.MethodHandle.DispatcherreturnType in interface JavaInstance.MethodHandle.DispatchermethodType - The method type to be introspected.public List<? extends Class<?>> parameterArray(Object methodType)
JavaInstance.MethodHandle.DispatcherparameterArray in interface JavaInstance.MethodHandle.DispatchermethodType - The method type to be introspected.Copyright © 2014–2016. All rights reserved.