ConstantDesc
, MethodHandleDesc
public sealed interface DirectMethodHandleDesc extends MethodHandleDesc
MethodHandle
. A DirectMethodHandleDesc corresponds to a Constant_MethodHandle_info
entry in the constant pool of a classfile.Modifier and Type | Interface | Description |
---|---|---|
static enum |
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() |
Returns the kind of the method handle described by this nominal descriptor. |
String |
lookupDescriptor() |
Returns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode. |
String |
methodName() |
Returns the name of the method or field described by this nominal descriptor. |
ClassDesc |
owner() |
Returns a ClassDesc describing the class declaring the method or field described by this nominal descriptor. |
int |
refKind() |
Returns the refKind of the method handle described by this nominal reference, as defined by MethodHandleInfo . |
asType, equals, invocationType, resolveConstantDesc
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)
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/constant/DirectMethodHandleDesc.html