Package org.objectweb.asm
Class Handle
- java.lang.Object
-
- org.objectweb.asm.Handle
-
public final class Handle extends Object
A reference to a field or a method.- Author:
- Remi Forax, Eric Bruneton
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDesc()Returns the descriptor of the field or method designated by this handle.StringgetName()Returns the name of the field or method designated by this handle.StringgetOwner()Returns the internal name of the class that owns the field or method designated by this handle.intgetTag()Returns the kind of field or method designated by this handle.inthashCode()StringtoString()Returns the textual representation of this handle.
-
-
-
Constructor Detail
-
Handle
public Handle(int tag, String owner, String name, String desc)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_NEWINVOKESPECIALorOpcodes.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 Detail
-
getTag
public int getTag()
Returns the kind of field or method designated by this handle.
-
getOwner
public String 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
public String 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
public String 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.
-
-