public abstract class MemberRef
extends java.lang.Object
To instances are defined to be equal if they both refer to the same method and have the same invocation instructions.
| Modifier and Type | Class and Description |
|---|---|
static class |
MemberRef.Field
A static reference to a field backed by field get/put instruction
|
static class |
MemberRef.Handle
A reference to a field or method backed by a method handle
|
static class |
MemberRef.Method
A static reference to a method backed by an invoke instruction
|
| Constructor and Description |
|---|
MemberRef() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
abstract java.lang.String |
getDesc()
Descriptor of this member.
|
abstract java.lang.String |
getName()
Name of this member.
|
abstract int |
getOpcode()
The opcode of the invocation.
|
abstract java.lang.String |
getOwner()
The internal name for the owner of this member.
|
int |
hashCode() |
abstract boolean |
isField()
Whether this member is a field.
|
abstract void |
setDesc(java.lang.String desc)
Changes the descriptor of this member
|
abstract void |
setName(java.lang.String name)
Rename this member.
|
abstract void |
setOpcode(int opcode)
Set the opcode of the invocation.
|
abstract void |
setOwner(java.lang.String owner)
Changes the owner of this
|
java.lang.String |
toString() |
public abstract boolean isField()
public abstract int getOpcode()
public abstract void setOpcode(int opcode)
opcode - new opcodepublic abstract java.lang.String getOwner()
public abstract void setOwner(java.lang.String owner)
owner - New ownerpublic abstract java.lang.String getName()
public abstract void setName(java.lang.String name)
name - New name for this member.public abstract java.lang.String getDesc()
public abstract void setDesc(java.lang.String desc)
desc - New descriptor of this memberpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object