public static class JavaInstance.MethodHandle.Dispatcher.ForModernVm 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.ForIntermediateVm, JavaInstance.MethodHandle.Dispatcher.ForLegacyVm, JavaInstance.MethodHandle.Dispatcher.ForModernVm, JavaInstance.MethodHandle.Dispatcher.InitializablegetDeclaringClass, getMethodType, getName, getReferenceKind, parameterArray, publicLookup, returnType| Modifier | Constructor and Description |
|---|---|
protected |
ForModernVm(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, returnTypeprotected ForModernVm(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.InitializableaccessControlContext - The access control context to be used for introspecting private APIs, if required.public boolean equals(Object other)
equals in class JavaInstance.MethodHandle.Dispatcher.AbstractBasepublic int hashCode()
hashCode in class JavaInstance.MethodHandle.Dispatcher.AbstractBaseCopyright © 2014–2015. All rights reserved.