类 Handle
- java.lang.Object
- org.springframework.asm.Handle
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()booleanisInterface()Returns true if the owner of the field or method designated by this handle is an interface.StringtoString()Returns the textual representation of this handle.
构造器详细资料
Handle
@Deprecated public Handle(int tag, String owner, String name, String desc)
已过时。this constructor has been superseded byHandle(int, String, String, String, boolean).Constructs a new field or method handle.- 参数:
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.
Handle
public Handle(int tag, String owner, String name, String desc, boolean itf)
Constructs a new field or method handle.- 参数:
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.itf- true if the owner is an interface.
方法详细资料
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.- 返回:
- 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.- 返回:
- 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.- 返回:
- the descriptor of the field or method designated by this handle.
isInterface
public boolean isInterface()
Returns true if the owner of the field or method designated by this handle is an interface.- 返回:
- true if the owner of the field or method designated by this handle is an interface.
toString
public String toString()
Returns the textual representation of this handle. The textual representation is:for a reference to a class: owner '.' name desc ' ' '(' tag ')' for a reference to an interface: owner '.' name desc ' ' '(' tag ' ' itf ')'. As this format is unambiguous, it can be parsed if necessary.