ConstantPool

dotty.tools.dotc.core.classfile.ClassfileParser.ConstantPool
class ConstantPool(using in: DataReader) extends AbstractConstantPool

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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.

Attributes

def getClassSymbol(index: Int)(using ctx: Context, in: DataReader): Symbol
def getType(index: Int, isVarargs: Boolean)(using Context, DataReader): Type

Inherited methods

protected def errorBadIndex(index: Int)(using in: DataReader): Nothing

Throws an exception signaling a bad constant index.

Throws an exception signaling a bad constant index.

Attributes

Inherited from:
AbstractConstantPool
protected def errorBadTag(start: Int)(using in: DataReader): Nothing

Throws an exception signaling a bad tag at given address.

Throws an exception signaling a bad tag at given address.

Attributes

Inherited from:
AbstractConstantPool
def getBytes(indices: List[Int])(using in: DataReader): Array[Byte]

Attributes

Inherited from:
AbstractConstantPool
def getBytes(index: Int)(using in: DataReader): Array[Byte]

Attributes

Inherited from:
AbstractConstantPool
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.

Attributes

Inherited from:
AbstractConstantPool
def getConstant(index: Int)(using ctx: Context, in: DataReader): Constant

Attributes

Inherited from:
AbstractConstantPool
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 '.'.

Attributes

Inherited from:
AbstractConstantPool
def getName(index: Int)(using in: DataReader): NameOrString

Return the name found at given index.

Return the name found at given index.

Attributes

Inherited from:
AbstractConstantPool
def getSuperClass(index: Int)(using Context, DataReader): Symbol

Attributes

Inherited from:
AbstractConstantPool

Inherited fields

protected val internalized: Array[NameOrString]

Attributes

Inherited from:
AbstractConstantPool
protected val len: Char

Attributes

Inherited from:
AbstractConstantPool
protected val starts: Array[Int]

Attributes

Inherited from:
AbstractConstantPool
protected val values: Array[AnyRef]

Attributes

Inherited from:
AbstractConstantPool