MethodHandle. A DirectMethodHandleDesc corresponds to
a Constant_MethodHandle_info entry in the constant pool of a classfile.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | DirectMethodHandleDesc.
Kinds of method handles that can be described with DirectMethodHandleDesc. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the method is declared by an interfaceIndicates if the method is declared by an interface |
| public DirectMethodHandleDesc. | |
| public String | Returns: the lookup descriptor stringReturns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode. |
| public String | Returns: the name of the method or fieldReturns the name of the method or field described by this nominal descriptor. |
| public ClassDesc | |
| public int | Returns: the reference kindReturns the |
| isOwnerInterface | back to summary |
|---|---|
| public boolean isOwnerInterface() Indicates if the method is declared by an interface
| |
| kind | back to summary |
|---|---|
| public DirectMethodHandleDesc. Returns the
| |
| lookupDescriptor | back to summary |
|---|---|
| public String lookupDescriptor() Returns the lookup descriptor of the method handle described by this descriptor,
after adjusting for the invocation mode. This will correspond to either
a method type descriptor string (for methods and constructors), or a field
descriptor string (for field access method handles). The lookup descriptor
string is in the same format as accepted by
| |
| methodName | back to summary |
|---|---|
| public String methodName() Returns the name of the method or field described by this nominal descriptor. For constructors, returns the reserved name <init>.
| |
| owner | back to summary |
|---|---|
| public ClassDesc owner() Returns a
| |
| refKind | back to summary |
|---|---|
| public int refKind() Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DirectMethodHandleDesc. | CONSTRUCTOR
A method handle for a constructor |
| public static final DirectMethodHandleDesc. | GETTER
A method handle for a read accessor for an instance field |
| public static final DirectMethodHandleDesc. | INTERFACE_SPECIAL
A method handle for an interface method invoked as with |
| public static final DirectMethodHandleDesc. | INTERFACE_STATIC
A method handle for a method invoked as with |
| public static final DirectMethodHandleDesc. | INTERFACE_VIRTUAL
A method handle for a method invoked as with |
| public final boolean | isInterface
Is this an interface |
| public final int | refKind
The corresponding |
| public static final DirectMethodHandleDesc. | SETTER
A method handle for a write accessor for an instance field |
| public static final DirectMethodHandleDesc. | SPECIAL
A method handle for a method invoked as with |
| public static final DirectMethodHandleDesc. | STATIC
A method handle for a method invoked as with |
| public static final DirectMethodHandleDesc. | STATIC_GETTER
A method handle for a read accessor for a static field |
| public static final DirectMethodHandleDesc. | STATIC_SETTER
A method handle for a write accessor for a static field |
| private static final DirectMethodHandleDesc. | |
| public static final DirectMethodHandleDesc. | VIRTUAL
A method handle for a method invoked as with |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static DirectMethodHandleDesc. | |
| public static DirectMethodHandleDesc. | Returns: the matching enumeration memberrefKind of desired member refKind)Returns the enumeration member with the given |
| public static DirectMethodHandleDesc. | Returns: the matching enumeration memberrefKind of desired member refKind, boolean whether desired member is for interface methods isInterface)Returns the enumeration member with the given the |
| public static DirectMethodHandleDesc. |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a constructor | |
| GETTER | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a read accessor for an instance field | |
| INTERFACE_SPECIAL | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for an interface method invoked as with | |
| INTERFACE_STATIC | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a method invoked as with | |
| INTERFACE_VIRTUAL | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a method invoked as with | |
| isInterface | back to summary |
|---|---|
| public final boolean isInterface Is this an interface | |
| refKind | back to summary |
|---|---|
| public final int refKind The corresponding | |
| SETTER | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a write accessor for an instance field | |
| SPECIAL | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a method invoked as with | |
| STATIC | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a method invoked as with | |
| STATIC_GETTER | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a read accessor for a static field | |
| STATIC_SETTER | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a write accessor for a static field | |
| TABLE | back to summary |
|---|---|
| private static final DirectMethodHandleDesc. | |
| VIRTUAL | back to summary |
|---|---|
| public static final DirectMethodHandleDesc. A method handle for a method invoked as with | |
| Kind | back to summary |
|---|---|
| private Kind(int refKind) | |
| Kind | back to summary |
|---|---|
| private Kind(int refKind, boolean isInterface) | |
| tableIndex | back to summary |
|---|---|
| private static int tableIndex(int refKind, boolean isInterface) | |
| valueOf | back to summary |
|---|---|
| public static DirectMethodHandleDesc. | |
| valueOf | back to summary |
|---|---|
| public static DirectMethodHandleDesc. Returns the enumeration member with the given
| |
| valueOf | back to summary |
|---|---|
| public static DirectMethodHandleDesc. Returns the enumeration member with the given the
isInterface:
| |
| values | back to summary |
|---|---|
| public static DirectMethodHandleDesc. | |