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