Class Handle
🏭 Constructors
constructor
new Handle(tag: number, owner: string, name: string, desc: string, itf: boolean= ...): HandleConstructs a new field or method handle.
Parameters
- tag:
numberthe 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:
stringthe internal name of the class that owns the field or method designated by this handle. - name:
stringthe name of the field or method designated by this handle. - desc:
stringthe descriptor of the field or method designated by this handle. - itf:
booleantrue if the owner is an interface.
Return Type
Handle
Defined in: packages/asm/libs/Handle.ts:93
🏷️ Properties
descriptor
descriptor: stringThe descriptor of the field or method designated by this handle.
Defined in: packages/asm/libs/Handle.ts:63
isInterface
isInterface: booleanIndicate if the owner is an interface or not.
Defined in: packages/asm/libs/Handle.ts:68
name
name: stringThe name of the field or method designated by this handle.
Defined in: packages/asm/libs/Handle.ts:58
owner
owner: stringThe 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: numberThe 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): booleanParameters
- obj:
any
Return Type
boolean
Defined in: packages/asm/libs/Handle.ts:101
hashCode
hashCode(): numberReturn Type
number
Defined in: packages/asm/libs/Handle.ts:112
toString
toString(): stringReturns 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