ConstantPool
A ConstantPool is a list of ConstantPoolEntrys We store data inside the ConstantPool. This has the advantage that we can reference to the data by an index. Double-used data will only be stored once, and we can reference to it by the index.
Since
0.1.0
Parameters
The entries of the ConstantPool
Inheritors
Properties
Functions
Dump the ConstantPool to a ByteArray
Dump the ConstantPool to the given stream
Find the ConstantPoolEntry.ClassConstant with the given identifier
Find the ConstantPoolEntry.ClassConstant with the given name
Find the ConstantPoolEntry.DoubleConstant with the given value
Find the ConstantPoolEntry.StringConstant with the given value
Get the constant at the given index as a ConstantPoolEntry.ByteConstant
Get the constant at the given index as a ConstantPoolEntry.ClassConstant
Get the constant at the given index as a ConstantPoolEntry.DoubleConstant
Get the constant at the given index as a ConstantPoolEntry.FloatConstant
Get the constant at the given index as a ConstantPoolEntry.IntConstant
Get the constant at the given index as a ConstantPoolEntry.LongConstant
Get the constant at the given index as a ConstantPoolEntry.ShortConstant
Get the constant at the given index as a ConstantPoolEntry.StringConstant
Get the constant at the given identifier as a ConstantPoolEntry.Utf8Constant
Get the hashCode of the ConstantPool
Get the string representation of the ConstantPool