Package org.eclipse.sisu.space.asm
Class Handle
java.lang.Object
org.eclipse.sisu.space.asm.Handle
A reference to a field or a method.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String
The descriptor of the field or method designated by this handle.(package private) final String
The name of the field or method designated by this handle.(package private) final String
The internal name of the class that owns the field or method designated by this handle.(package private) final int
The kind of field or method designated by this Handle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getDesc()
Returns the descriptor of the field or method designated by this handle.getName()
Returns the name of the field or method designated by this handle.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()
toString()
Returns the textual representation of this handle.
-
Field Details
-
tag
final int tagThe kind of field or method designated by this Handle. Should beOpcodes.H_GETFIELD
,Opcodes.H_GETSTATIC
,Opcodes.H_PUTFIELD
,Opcodes.H_PUTSTATIC
,Opcodes.H_INVOKEVIRTUAL
,Opcodes.H_INVOKESTATIC
,Opcodes.H_INVOKESPECIAL
,Opcodes.H_NEWINVOKESPECIAL
orOpcodes.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. -
desc
The descriptor of the field or method designated by this handle.
-
-
Constructor Details
-
Handle
Constructs a new field or method handle.- Parameters:
tag
- the kind of field or method designated by this Handle. Must beOpcodes.H_GETFIELD
,Opcodes.H_GETSTATIC
,Opcodes.H_PUTFIELD
,Opcodes.H_PUTSTATIC
,Opcodes.H_INVOKEVIRTUAL
,Opcodes.H_INVOKESTATIC
,Opcodes.H_INVOKESPECIAL
,Opcodes.H_NEWINVOKESPECIAL
orOpcodes.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.desc
- the descriptor of the field or method designated by this handle.
-
-
Method Details
-
getTag
public int getTag()Returns the kind of field or method designated by this handle. -
getOwner
Returns the internal name of the class that owns the field or method designated by this handle.- Returns:
- the internal name of the class that owns the field or method designated by this handle.
-
getName
Returns the name of the field or method designated by this handle.- Returns:
- the name of the field or method designated by this handle.
-
getDesc
Returns the descriptor of the field or method designated by this handle.- Returns:
- the descriptor of the field or method designated by this handle.
-
equals
-
hashCode
public int hashCode() -
toString
Returns the textual representation of this handle. The textual representation is:owner '.' name desc ' ' '(' tag ')'
. As this format is unambiguous, it can be parsed if necessary.
-