# Uses of Enum Class
java.lang.invoke.VarHandle.AccessMode

Packages that use 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 the `AccessMode` value associated with the specified `VarHandle` signature-polymorphic method name.
`static VarHandle.AccessMode`
VarHandle.AccessMode.`valueOf(String name)`
Returns the enum constant of this class with the specified name.
`static VarHandle.AccessMode[]`
VarHandle.AccessMode.`values()`
Returns an array containing the constants of this enum class, in the order they are declared.
Methods in java.lang.invoke with parameters of type VarHandle.AccessMode
Modifier and Type
Method
Description
`final 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)`
Returns `true` if the given access mode is supported, otherwise `false`.
`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.