public final class Handle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
descriptor
The descriptor of the field or method designated by this handle.
|
private boolean |
isInterface
Whether the owner is an interface or not.
|
private java.lang.String |
name
The name of the field or method designated by this handle.
|
private java.lang.String |
owner
The internal name of the class that owns the field or method designated by this handle.
|
private int |
tag
The kind of field or method designated by this Handle.
|
Constructor and Description |
---|
Handle(int tag,
java.lang.String owner,
java.lang.String name,
java.lang.String descriptor)
Deprecated.
this constructor has been superseded by
Handle(int, String, String, String,
boolean) . |
Handle(int tag,
java.lang.String owner,
java.lang.String name,
java.lang.String descriptor,
boolean isInterface)
Constructs a new field or method handle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getDesc()
Returns the descriptor of the field or method designated by this handle.
|
java.lang.String |
getName()
Returns the name of the field or method designated by this handle.
|
java.lang.String |
getOwner()
Returns the internal name of the class that owns the field or method designated by this handle.
|
int |
getTag()
Returns the kind of field or method designated by this handle.
|
int |
hashCode() |
boolean |
isInterface()
Returns true if the owner of the field or method designated by this handle is an interface.
|
java.lang.String |
toString()
Returns the textual representation of this handle.
|
private final int tag
Opcodes.H_GETFIELD
,
Opcodes.H_GETSTATIC
, Opcodes.H_PUTFIELD
, Opcodes.H_PUTSTATIC
, Opcodes.H_INVOKEVIRTUAL
, Opcodes.H_INVOKESTATIC
, Opcodes.H_INVOKESPECIAL
,
Opcodes.H_NEWINVOKESPECIAL
or Opcodes.H_INVOKEINTERFACE
.private final java.lang.String owner
private final java.lang.String name
private final java.lang.String descriptor
private final boolean isInterface
@Deprecated public Handle(int tag, java.lang.String owner, java.lang.String name, java.lang.String descriptor)
Handle(int, String, String, String,
boolean)
.tag
- the kind of field or method designated by this Handle. Must be Opcodes.H_GETFIELD
, Opcodes.H_GETSTATIC
, Opcodes.H_PUTFIELD
, Opcodes.H_PUTSTATIC
, Opcodes.H_INVOKEVIRTUAL
, Opcodes.H_INVOKESTATIC
,
Opcodes.H_INVOKESPECIAL
, Opcodes.H_NEWINVOKESPECIAL
or Opcodes.H_INVOKEINTERFACE
.owner
- the internal name of the class that owns the field or method designated by this
handle.name
- the name of the field or method designated by this handle.descriptor
- the descriptor of the field or method designated by this handle.public Handle(int tag, java.lang.String owner, java.lang.String name, java.lang.String descriptor, boolean isInterface)
tag
- the kind of field or method designated by this Handle. Must be Opcodes.H_GETFIELD
, Opcodes.H_GETSTATIC
, Opcodes.H_PUTFIELD
, Opcodes.H_PUTSTATIC
, Opcodes.H_INVOKEVIRTUAL
, Opcodes.H_INVOKESTATIC
,
Opcodes.H_INVOKESPECIAL
, Opcodes.H_NEWINVOKESPECIAL
or Opcodes.H_INVOKEINTERFACE
.owner
- the internal name of the class that owns the field or method designated by this
handle.name
- the name of the field or method designated by this handle.descriptor
- the descriptor of the field or method designated by this handle.isInterface
- whether the owner is an interface or not.public int getTag()
public java.lang.String getOwner()
public java.lang.String getName()
public java.lang.String getDesc()
public boolean isInterface()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object