ConstantPoolpublic interface ConstantPool Interface for constant pools, which are, more or less, just lists of
{@link Constant} objects. |
Methods Summary |
---|
public Constant | get(int n)Get the n th entry in the constant pool, which must
be valid.
| public Constant | get0Ok(int n)Get the n th entry in the constant pool, which must
be valid unless n == 0 , in which case null
is returned.
| public Constant | getOrNull(int n)Get the n th entry in the constant pool, or
null if the index is in-range but invalid. In
particular, null is returned for index 0
as well as the index after any entry which is defined to take up
two slots (that is, Long and Double
entries).
| public int | size()Get the "size" of the constant pool. This corresponds to the
class file field constant_pool_count , and is in fact
always at least one more than the actual size of the constant pool,
as element 0 is always invalid.
|
|