| java.lang.Object com.sun.tools.javac.jvm.Pool
Pool | public class Pool (Code) | | An internal structure that corresponds to the constant pool of a classfile.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
|
Inner Class :static class Method extends DelegatedSymbol | |
Inner Class :static class Variable extends DelegatedSymbol | |
Constructor Summary | |
public | Pool(int pp, Object[] pool) Construct a pool with given number of elements and element array. | public | Pool() Construct an empty pool. |
Method Summary | |
public int | get(Object o) Return the given object's index in the pool,
or -1 if object is not in there. | public int | numEntries() Return the number of entries in the constant pool. | public int | put(Object value) Place an object in the pool, unless it is already there.
If object is a symbol also enter its owner unless the owner is a
package. | public void | reset() Remove everything from this pool. |
MAX_ENTRIES | final public static int MAX_ENTRIES(Code) | | |
MAX_STRING_LENGTH | final public static int MAX_STRING_LENGTH(Code) | | |
pp | int pp(Code) | | Index of next constant to be entered.
|
Pool | public Pool(int pp, Object[] pool)(Code) | | Construct a pool with given number of elements and element array.
|
Pool | public Pool()(Code) | | Construct an empty pool.
|
get | public int get(Object o)(Code) | | Return the given object's index in the pool,
or -1 if object is not in there.
|
numEntries | public int numEntries()(Code) | | Return the number of entries in the constant pool.
|
put | public int put(Object value)(Code) | | Place an object in the pool, unless it is already there.
If object is a symbol also enter its owner unless the owner is a
package. Return the object's index in the pool.
|
reset | public void reset()(Code) | | Remove everything from this pool.
|
|
|