Package org.springframework.asm
Class Handle
java.lang.Object
org.springframework.asm.Handle
A reference to a field or a method.
- Author:
- Remi Forax, Eric Bruneton
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetDesc()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.intgetTag()Returns the kind of field or method designated by this handle.inthashCode()booleanReturns true if the owner of the field or method designated by this handle is an interface.toString()Returns the textual representation of this handle.
- 
Constructor Details- 
HandleDeprecated.this constructor has been superseded byHandle(int, String, String, String, boolean).Constructs a new field or method handle.- Parameters:
- 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_NEWINVOKESPECIALor- Opcodes.H_INVOKEINTERFACE.
- owner- the internal name of the class that owns the field or method designated by this handle (see- Type.getInternalName()).
- name- the name of the field or method designated by this handle.
- descriptor- the descriptor of the field or method designated by this handle.
 
- 
HandleConstructs a new field or method handle.- Parameters:
- 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_NEWINVOKESPECIALor- Opcodes.H_INVOKEINTERFACE.
- owner- the internal name of the class that owns the field or method designated by this handle (see- Type.getInternalName()).
- 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.
 
 
- 
- 
Method Details- 
getTagpublic int getTag()Returns the kind of field or method designated by this handle.
- 
getOwnerReturns 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
     (see Type.getInternalName()).
 
- 
getNameReturns the name of the field or method designated by this handle.- Returns:
- the name of the field or method designated by this handle.
 
- 
getDescReturns the descriptor of the field or method designated by this handle.- Returns:
- the descriptor of the field or method designated by this handle.
 
- 
isInterfacepublic boolean isInterface()Returns true if the owner of the field or method designated by this handle is an interface.- Returns:
- true if the owner of the field or method designated by this handle is an interface.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toStringReturns the textual representation of this handle. The textual representation is:- for a reference to a class: owner "." name descriptor " (" tag ")",
- for a reference to an interface: owner "." name descriptor " (" tag " itf)".
 
 
- 
Handle(int, String, String, String, boolean).