@HashCodeAndEqualsPlugin.Enhance 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.CreationAction, 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 |
---|---|
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.
|
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reveal
initialize
protected 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()
java.lang.invoke.MethodHandles.Lookup
instance.publicLookup
in interface JavaConstant.MethodHandle.Dispatcher.Initializable
java.lang.invoke.MethodHandles.Lookup
instance.public Object getMethodType(Object methodHandleInfo)
getMethodType
in interface JavaConstant.MethodHandle.Dispatcher
methodHandleInfo
- The method handle info to introspect.java.lang.invoke.MethodType
instance representing the method handle's type.public int getReferenceKind(Object methodHandleInfo)
getReferenceKind
in interface JavaConstant.MethodHandle.Dispatcher
methodHandleInfo
- The method handle to be introspected.public Class<?> getDeclaringClass(Object methodHandleInfo)
getDeclaringClass
in interface JavaConstant.MethodHandle.Dispatcher
methodHandleInfo
- The method handle to be introspected.public String getName(Object methodHandleInfo)
getName
in interface JavaConstant.MethodHandle.Dispatcher
methodHandleInfo
- The method handle to be introspected.public Class<?> returnType(Object methodType)
returnType
in interface JavaConstant.MethodHandle.Dispatcher
methodType
- The method type to be introspected.public List<? extends Class<?>> parameterArray(Object methodType)
parameterArray
in interface JavaConstant.MethodHandle.Dispatcher
methodType
- The method type to be introspected.public Class<?> lookupType(Object lookup)
java.lang.invoke.MethodHandles$Lookup
instance.lookupType
in interface JavaConstant.MethodHandle.Dispatcher.Initializable
lookup
- A java.lang.invoke.MethodHandles$Lookup
instance.Copyright © 2014–2019. All rights reserved.