Interface MethodHandleEntry

All Superinterfaces:
LoadableConstantEntry, PoolEntry

public sealed interface MethodHandleEntry extends LoadableConstantEntry
Models a CONSTANT_MethodHandle_info structure, or a symbolic reference to a method handle, in the constant pool of a class file. The method handle directly accesses an accessible method, field, or constructor.

The use of a MethodHandleEntry is modeled by a DirectMethodHandleDesc. Conversions are through ConstantPoolBuilder.methodHandleEntry(DirectMethodHandleDesc) and asSymbol().

A method handle entry is composite:

MethodHandleEntry(
    int refKind,
    MemberRefEntry reference
)
where refKind is in the range [1, 9].
See Java Virtual Machine Specification:
4.4.8 The CONSTANT_MethodHandle_info Structure
Since:
24
See Also: