| Modifier and Type | Field and Description |
|---|---|
| private final MemberName | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static MemberName | |
| public Class | getDeclaringClass()
Implements java. Returns the class in which the cracked method handle's underlying member was defined. |
| public MethodType | getMethodType()
Implements java. Returns the nominal type of the cracked symbolic reference, expressed as a method type. |
| public int | getModifiers()
Implements java. Returns the access modifiers of the underlying member. |
| public String | getName()
Implements java. Returns the name of the cracked method handle's underlying member. |
| public int | getReferenceKind()
Implements java. Returns the reference kind of the cracked method handle, which in turn determines whether the method handle's underlying member was a constructor, method, or field. |
| public <T extends Member> T | reflectAs(Class<T> expected, MethodHandles.
Implements java. Reflects the underlying member as a method, constructor, or field object. |
| private Member | |
| public String |
| member | back to summary |
|---|---|
| private final MemberName member | |
| referenceKind | back to summary |
|---|---|
| private final int referenceKind | |
| InfoFromMemberName | back to summary |
|---|---|
| pack-priv InfoFromMemberName(MethodHandles. | |
| convertToMemberName | back to summary |
|---|---|
| private static MemberName convertToMemberName(byte refKind, Member mem) throws IllegalAccessException | |
| getDeclaringClass | back to summary |
|---|---|
| public Class Implements java. Doc from java. Returns the class in which the cracked method handle's underlying member was defined.
| |
| getMethodType | back to summary |
|---|---|
| public MethodType getMethodType() Implements java. Doc from java. Returns the nominal type of the cracked symbolic reference, expressed as a method type.
If the reference is to a constructor, the return type will be
Note that original direct method handle may include a leading
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements java. Doc from java. Returns the access modifiers of the underlying member.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Doc from java. Returns the name of the cracked method handle's underlying member. This is <init> if the underlying member was a constructor, else it is a simple method name or field name.
| |
| getReferenceKind | back to summary |
|---|---|
| public int getReferenceKind() Implements java. Doc from java. Returns the reference kind of the cracked method handle, which in turn determines whether the method handle's underlying member was a constructor, method, or field. See the table above for definitions.
| |
| reflectAs | back to summary |
|---|---|
| public <T extends Member> T reflectAs(Class<T> expected, MethodHandles. Implements java. Doc from java. Reflects the underlying member as a method, constructor, or field object.
If the underlying member is public, it is reflected as if by
| |
| reflectUnchecked | back to summary |
|---|---|
| private Member reflectUnchecked() throws ReflectiveOperationException | |
| 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-
| |