Skip to content

Class Handle

🏭 Constructors

constructor public

ts
new Handle(tag: number, owner: string, name: string, desc: string, itf: boolean= ...): Handle

Constructs a new field or method handle.

Parameters

Return Type

  • Handle

Defined in: packages/asm/libs/Handle.ts:93

🏷️ Properties

descriptor readonly

ts
descriptor: string

The descriptor of the field or method designated by this handle.

Defined in: packages/asm/libs/Handle.ts:63

isInterface readonly

ts
isInterface: boolean

Indicate if the owner is an interface or not.

Defined in: packages/asm/libs/Handle.ts:68

name readonly

ts
name: string

The name of the field or method designated by this handle.

Defined in: packages/asm/libs/Handle.ts:58

owner readonly

ts
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 readonly

ts
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 public

ts
equals(obj: any): boolean

Parameters

  • obj: any

Return Type

  • boolean

Defined in: packages/asm/libs/Handle.ts:101

hashCode public

ts
hashCode(): number

Return Type

  • number

Defined in: packages/asm/libs/Handle.ts:112

toString public

ts
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