AbstractConstantPool

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract 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

Concrete 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

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

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.

Attributes

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 '.'.

Attributes

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

Return the name found at given index.

Return the name found at given index.

Attributes

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

Concrete fields

protected val internalized: Array[NameOrString]
protected val len: Char
protected val starts: Array[Int]
protected val values: Array[AnyRef]