This class represents the constant pool, i.e., a table of constants.
It may contain null references, due to the JVM specification that skips
an entry after an 8-byte constant (double, long) entry.
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. I.e., the hierarchy of methods,
fields, attributes, etc. spawns a tree of objects.
public java.lang.String getConstantString(int index,
byte tag)
throws java.lang.ClassFormatError
Get string from constant pool and bypass the indirection of
`ConstantClass' and `ConstantString' objects. I.e. these classes have
an index field that points to another entry of the constant pool of
type `ConstantUtf8' which contains the real data.
Parameters:
index - Index in constant pool
tag - Tag of expected constant, either ConstantClass or ConstantString