ConstantPool
Wrapper around the JVM Class File's Constant Pool table.
It provides simplified access to the elements contained in the Constant Pool while.
Constructor Summary
Public Constructor | ||
public |
constructor(pool: Array<Object>) |
Member Summary
Public Members | ||
public |
|
|
public get |
The total size of the Constant Pool. |
Method Summary
Public Methods | ||
public |
The 1-based index into the Constant Pool for which you wish to retrieve the entry from. |
|
public |
Attempts to find the first entry in the pool matching the specified criteria going from the first index to the last. |
|
public |
Serialized version of this class without circular references. |
|
public |
Decodes the entry's value at the Constant Pool index specified. |
Public Constructors
Public Members
Public Methods
public at(idx: Number): Object | false source
The 1-based index into the Constant Pool for which you wish to retrieve the entry from.
Indices MUST be: 1 ≤ index ≤ ConstantPool#size
Params:
Name | Type | Attribute | Description |
idx | Number |
Return:
Object | false | returns false if the index passed is the second half (empty) of a Double or Long entry in the Constant Pool. See the Oracle link below for more information. |
public find(criteria: Object): Object | undefined source
Attempts to find the first entry in the pool matching the specified criteria going from the first index to the last.
Params:
Name | Type | Attribute | Description |
criteria | Object | Search criteria |