class ConstantPool

Members

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

Throws an exception signaling a bad constant index.

private def errorBadTag ( start: Int ) : Nothing

Throws an exception signaling a bad tag at given address.

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

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.

def getClassSymbol ( index: Int ) ( implicit ctx: Context ) : Symbol
def getConstant ( index: Int ) ( implicit ctx: Context ) : Constant
def getExternalName ( index: Int ) : TermName

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

def getName ( index: Int ) : TermName

Return the name found at given index.

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

Return a name and a type at the given index.

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