class ConstantPool

Constructors

ConstantPool ( )

Members

private val internalized : Array [ SimpleTermName ]
private val len : Char
private val starts : Array [ Int ]
private val values : Array [ AnyRef ]
private def errorBadIndex ( index: Int ) : Nothing

Throws an exception signaling a bad constant index.

Throws an exception signaling a bad constant index.

private def errorBadTag ( start: Int ) : Nothing

Throws an exception signaling a bad tag at given address.

Throws an exception signaling a bad tag at given address.

def getBytes ( index: Int ) : Array [ Byte ]
def getBytes ( indices: List [ Int ] ) : Array [ Byte ]
def getClassName ( index: Int ) : SimpleTermName

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 ) ( implicit ctx: Context ) : 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 ) ( implicit ctx: Context ) : Symbol
def getConstant ( index: Int ) ( implicit ctx: Context ) : Constant
def getExternalName ( index: Int ) : SimpleTermName

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 ) : SimpleTermName

Return the name found at given index.

Return the name found at given index.

private def getNameAndType ( index: Int , ownerTpe: Type ) ( implicit ctx: Context ) : ( Name, Type )

Return a name and a type at the given index.

Return a name and a type at the given index.

private def getSubArray ( bytes: Array [ Byte ] ) : Array [ Byte ]
def getSuperClass ( index: Int ) ( implicit ctx: Context ) : Symbol
def getType ( index: Int ) ( implicit ctx: Context ) : Type