public static class JavaConstant.MethodHandle.Dispatcher.ForJava8CapableVm extends JavaConstant.MethodHandle.Dispatcher.AbstractBase
java.lang.invoke.MethodHandle
instance on a virtual machine that officially supports this
introspection, i.e. Java versions 8+.JavaConstant.MethodHandle.Dispatcher.AbstractBase, JavaConstant.MethodHandle.Dispatcher.CreationAction, JavaConstant.MethodHandle.Dispatcher.ForJava7CapableVm, JavaConstant.MethodHandle.Dispatcher.ForJava8CapableVm, JavaConstant.MethodHandle.Dispatcher.ForLegacyVm, JavaConstant.MethodHandle.Dispatcher.Initializable
getDeclaringClass, getMethodType, getName, getReferenceKind, lookupClass, parameterArray, publicLookup, returnType
Modifier | Constructor and Description |
---|---|
protected |
ForJava8CapableVm(Method publicLookup,
Method getName,
Method getDeclaringClass,
Method getReferenceKind,
Method getMethodType,
Method returnType,
Method parameterArray,
Method lookupClass,
Method revealDirect)
Creates a dispatcher for a modern VM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
JavaConstant.MethodHandle.Dispatcher |
initialize()
Initializes the dispatcher, if required.
|
Object |
reveal(Object lookup,
Object methodHandle) |
String |
toString() |
getDeclaringClass, getMethodType, getName, getReferenceKind, lookupType, parameterArray, publicLookup, returnType
protected ForJava8CapableVm(Method publicLookup, Method getName, Method getDeclaringClass, Method getReferenceKind, Method getMethodType, Method returnType, Method parameterArray, Method lookupClass, Method revealDirect)
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.revealDirect
- A reference to the java.lang.invoke.MethodHandles.Lookup#revealDirect
method.public JavaConstant.MethodHandle.Dispatcher initialize()
JavaConstant.MethodHandle.Dispatcher.Initializable
public boolean equals(Object other)
equals
in class JavaConstant.MethodHandle.Dispatcher.AbstractBase
public int hashCode()
hashCode
in class JavaConstant.MethodHandle.Dispatcher.AbstractBase
Copyright © 2014–2017. All rights reserved.