MethodHandle. A DirectMethodHandleDescImpl corresponds to
a Constant_MethodHandle_info entry in the constant pool of a classfile.
| Modifier and Type | Field and Description |
|---|---|
| private final MethodTypeDesc | |
| private final DirectMethodHandleDesc. | |
| private final String | |
| private final ClassDesc |
| Access | Constructor and Description |
|---|---|
| public | DirectMethodHandleDescImpl(DirectMethodHandleDesc.
the kind of the method handle kind,the declaring class or interface for the method owner, String the unqualified name of the method (ignored if name, MethodTypeDesc kind is CONSTRUCTOR)the lookup type of the method type)Constructs a DirectMethodHandleDescImpl for a method or field from a kind, owner, name, and type |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified DirectMethodHandleDescImpl
is equal to this DirectMethodHandleDescImpl.a o)DirectMethodHandleDescImpl to compare to this
DirectMethodHandleDescImplOverrides java. Implements java. Returns |
| public int | |
| public MethodTypeDesc | invocationType()
Implements java. Returns a |
| public boolean | isOwnerInterface()
Implements java. Indicates if the method is declared by an interface |
| public DirectMethodHandleDesc. | kind()
Implements java. Returns the |
| public String | lookupDescriptor()
Implements java. Returns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode. |
| public String | methodName()
Implements java. Returns the name of the method or field described by this nominal descriptor. |
| public ClassDesc | owner()
Implements java. Returns a |
| public int | refKind()
Implements java. Returns the |
| public MethodHandle | resolveConstantDesc(MethodHandles.
Implements java. Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. |
| public String | |
| private static void | |
| private static void |
| invocationType | back to summary |
|---|---|
| private final MethodTypeDesc invocationType | |
| kind | back to summary |
|---|---|
| private final DirectMethodHandleDesc. | |
| name | back to summary |
|---|---|
| private final String name | |
| owner | back to summary |
|---|---|
| private final ClassDesc owner | |
| DirectMethodHandleDescImpl | back to summary |
|---|---|
| public DirectMethodHandleDescImpl(DirectMethodHandleDesc. Constructs a DirectMethodHandleDescImpl for a method or field from a kind, owner, name, and type
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements java. Returns | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| invocationType | back to summary |
|---|---|
| public MethodTypeDesc invocationType() Implements java. Doc from java. Returns a
| |
| isOwnerInterface | back to summary |
|---|---|
| public boolean isOwnerInterface() Implements java. Doc from java. Indicates if the method is declared by an interface
| |
| kind | back to summary |
|---|---|
| public DirectMethodHandleDesc. Implements java. Doc from java. Returns the
| |
| lookupDescriptor | back to summary |
|---|---|
| public String lookupDescriptor() Implements java. Doc from java. 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() Implements java. Doc from java. 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() Implements java. Doc from java. Returns a
| |
| refKind | back to summary |
|---|---|
| public int refKind() Implements java. Doc from java. Returns the
| |
| resolveConstantDesc | back to summary |
|---|---|
| public MethodHandle resolveConstantDesc(MethodHandles. Implements java. Doc from java. Resolves this descriptor reflectively, emulating the resolution behavior
of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. The resolution
and access control context is provided by the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| validateConstructor | back to summary |
|---|---|
| private static void validateConstructor(MethodTypeDesc type) | |
| validateFieldType | back to summary |
|---|---|
| private static void validateFieldType(MethodTypeDesc type, boolean isSetter, boolean isVirtual) | |