# Uses of Enum Class
java.lang.constant.DirectMethodHandleDesc.Kind

Packages that use DirectMethodHandleDesc.Kind
Package
Description
java.lang.constant
Classes and interfaces to represent nominal descriptors for run-time entities such as classes or method handles, and classfile entities such as constant pool entries or `invokedynamic` call sites.

## Uses of DirectMethodHandleDesc.Kind in java.lang.constant

Methods in java.lang.constant that return DirectMethodHandleDesc.Kind
Modifier and Type
Method
Description
`DirectMethodHandleDesc.Kind`
DirectMethodHandleDesc.`kind()`
Returns the `kind` of the method handle described by this nominal descriptor.
`static DirectMethodHandleDesc.Kind`
DirectMethodHandleDesc.Kind.`valueOf(int refKind)`
Returns the enumeration member with the given `refKind` field.
`static DirectMethodHandleDesc.Kind`
DirectMethodHandleDesc.Kind.`valueOf(int refKind, boolean isInterface)`
Returns the enumeration member with the given the `refKind` and `isInterface` arguments.
`static DirectMethodHandleDesc.Kind`
DirectMethodHandleDesc.Kind.`valueOf(String name)`
Returns the enum constant of this class with the specified name.
`static DirectMethodHandleDesc.Kind[]`
DirectMethodHandleDesc.Kind.`values()`
Returns an array containing the constants of this enum class, in the order they are declared.
Methods in java.lang.constant with parameters of type DirectMethodHandleDesc.Kind
Modifier and Type
Method
Description
`static DirectMethodHandleDesc`
MethodHandleDesc.`of(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, String lookupDescriptor)`
Creates a MethodHandleDesc corresponding to an invocation of a declared method, invocation of a constructor, or access to a field.
`static DirectMethodHandleDesc`
MethodHandleDesc.`ofField(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String fieldName, ClassDesc fieldType)`
Creates a MethodHandleDesc corresponding to a method handle that accesses a field.
`static DirectMethodHandleDesc`
MethodHandleDesc.`ofMethod(DirectMethodHandleDesc.Kind kind, ClassDesc owner, String name, MethodTypeDesc lookupMethodType)`
Creates a MethodHandleDesc corresponding to an invocation of a declared method or constructor.