Class Handle
🏭 Constructors
constructor
new Handle(tag: number, owner: string, name: string, desc: string, itf: boolean= ...): Handle
Constructs a new field or method handle.
Parameters
- tag:
number
the kind of field or method designated by this Handle. Must be H_GETFIELD, H_GETSTATIC, H_PUTFIELD, H_PUTSTATIC, H_INVOKEVIRTUAL, H_INVOKESTATIC, H_INVOKESPECIAL, H_NEWINVOKESPECIAL or H_INVOKEINTERFACE. - owner:
string
the internal name of the class that owns the field or method designated by this handle. - name:
string
the name of the field or method designated by this handle. - desc:
string
the descriptor of the field or method designated by this handle. - itf:
boolean
true if the owner is an interface.
Return Type
Handle
Defined in: packages/asm/libs/Handle.ts:93
🏷️ Properties
descriptor
descriptor: string
The descriptor of the field or method designated by this handle.
Defined in: packages/asm/libs/Handle.ts:63
isInterface
isInterface: boolean
Indicate if the owner is an interface or not.
Defined in: packages/asm/libs/Handle.ts:68
name
name: string
The name of the field or method designated by this handle.
Defined in: packages/asm/libs/Handle.ts:58
owner
owner: string
The internal name of the class that owns the field or method designated by this handle.
Defined in: packages/asm/libs/Handle.ts:53
tag
tag: number
The kind of field or method designated by this Handle. Should be H_GETFIELD, H_GETSTATIC, H_PUTFIELD, H_PUTSTATIC, H_INVOKEVIRTUAL, H_INVOKESTATIC, H_INVOKESPECIAL, H_NEWINVOKESPECIAL or H_INVOKEINTERFACE.
Defined in: packages/asm/libs/Handle.ts:47
🔧 Methods
equals
equals(obj: any): boolean
Parameters
- obj:
any
Return Type
boolean
Defined in: packages/asm/libs/Handle.ts:101
hashCode
hashCode(): number
Return Type
number
Defined in: packages/asm/libs/Handle.ts:112
toString
toString(): string
Returns the textual representation of this handle. The textual representation is:
<pre> for a reference to a class: owner '.' name desc ' ' '(' tag ')' for a reference to an interface: owner '.' name desc ' ' '(' tag ' ' itf ')' </pre>
. As this format is unambiguous, it can be parsed if necessary.
Return Type
string
Defined in: packages/asm/libs/Handle.ts:129