Uses of Class
java.lang.invoke.VarHandle.AccessMode
Package | Description |
---|---|
java.lang.invoke |
The
java.lang.invoke package provides low-level primitives for interacting
with the Java Virtual Machine. |
-
Uses of VarHandle.AccessMode in java.lang.invoke
Methods in java.lang.invoke that return VarHandle.AccessMode Modifier and Type Method Description static VarHandle.AccessMode
VarHandle.AccessMode. valueFromMethodName(String methodName)
Returns theAccessMode
value associated with the specifiedVarHandle
signature-polymorphic method name.static VarHandle.AccessMode
VarHandle.AccessMode. valueOf(String name)
Returns the enum constant of this type with the specified name.static VarHandle.AccessMode[]
VarHandle.AccessMode. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in java.lang.invoke with parameters of type VarHandle.AccessMode Modifier and Type Method Description MethodType
VarHandle. accessModeType(VarHandle.AccessMode accessMode)
Obtains the access mode type for this VarHandle and a given access mode.boolean
VarHandle. isAccessModeSupported(VarHandle.AccessMode accessMode)
Returnstrue
if the given access mode is supported, otherwisefalse
.MethodHandle
VarHandle. toMethodHandle(VarHandle.AccessMode accessMode)
Obtains a method handle bound to this VarHandle and the given access mode.static MethodHandle
MethodHandles. varHandleExactInvoker(VarHandle.AccessMode accessMode, MethodType type)
Produces a special invoker method handle which can be used to invoke a signature-polymorphic access mode method on any VarHandle whose associated access mode type is compatible with the given type.static MethodHandle
MethodHandles. varHandleInvoker(VarHandle.AccessMode accessMode, MethodType type)
Produces a special invoker method handle which can be used to invoke a signature-polymorphic access mode method on any VarHandle whose associated access mode type is compatible with the given type.