ConstantDesc
, MethodHandleDesc
public interface DirectMethodHandleDesc extends MethodHandleDesc
MethodHandle
. A DirectMethodHandleDescImpl corresponds to
a Constant_MethodHandle_info
entry in the constant pool of a classfile.Modifier and Type | Interface | Description |
---|---|---|
static class |
DirectMethodHandleDesc.Kind |
Kinds of method handles that can be described with DirectMethodHandleDesc.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isOwnerInterface() |
Indicates if the method is declared by an interface
|
DirectMethodHandleDesc.Kind |
kind() |
Return the
kind of the method handle described by this nominal
descriptor. |
String |
lookupDescriptor() |
Return the lookup descriptor of the method handle described by this descriptor,
after adjusting for the invocation mode.
|
String |
methodName() |
Return the name of the method or field described by this nominal descriptor.
|
ClassDesc |
owner() |
Return a
ClassDesc describing the class declaring the
method or field described by this nominal descriptor. |
int |
refKind() |
Return the
refKind of the method handle described by this nominal
reference, as defined by MethodHandleInfo . |
resolveConstantDesc
asType, invocationType
DirectMethodHandleDesc.Kind kind()
kind
of the method handle described by this nominal
descriptor.DirectMethodHandleDesc.Kind
int refKind()
refKind
of the method handle described by this nominal
reference, as defined by MethodHandleInfo
.boolean isOwnerInterface()
ClassDesc owner()
ClassDesc
describing the class declaring the
method or field described by this nominal descriptor.String methodName()
String lookupDescriptor()
MethodHandleDesc.of(Kind, ClassDesc, String, String)
.