ConstantPool

class ConstantPool(using in: DataReader)
class Object
trait Matchable
class Any

Value members

Concrete methods

def getBytes(index: Int)(using in: DataReader): Array[Byte]
def getBytes(indices: List[Int])(using in: DataReader): Array[Byte]
def getClassName(index: Int)(using in: DataReader): NameOrString

Return the external name of the class info structure found at 'index'. Use 'getClassSymbol' if the class is sure to be a top-level class.

Return the external name of the class info structure found at 'index'. Use 'getClassSymbol' if the class is sure to be a top-level class.

def getClassOrArrayType(index: Int)(using ctx: Context, in: DataReader): Type

Return the type of a class constant entry. Since arrays are considered to be class types, they might appear as entries in 'newarray' or 'cast' opcodes.

Return the type of a class constant entry. Since arrays are considered to be class types, they might appear as entries in 'newarray' or 'cast' opcodes.

def getClassSymbol(index: Int)(using ctx: Context, in: DataReader): Symbol
def getConstant(index: Int)(using ctx: Context, in: DataReader): Constant
def getExternalName(index: Int)(using in: DataReader): NameOrString

Return the name found at given index in the constant pool, with '/' replaced by '.'.

Return the name found at given index in the constant pool, with '/' replaced by '.'.

def getName(index: Int)(using in: DataReader): NameOrString

Return the name found at given index.

Return the name found at given index.

def getSuperClass(index: Int)(using Context, DataReader): Symbol
def getType(index: Int, isVarargs: Boolean)(using Context, DataReader): Type