|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.jvm.Pool
public class Pool
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.
| Nested Class Summary | |
|---|---|
(package private) static class |
Pool.Method
|
(package private) static class |
Pool.Variable
|
| Field Summary | |
|---|---|
(package private) java.util.Map<java.lang.Object,java.lang.Integer> |
indices
A hashtable containing all constants in the pool. |
static int |
MAX_ENTRIES
|
static int |
MAX_STRING_LENGTH
|
(package private) java.lang.Object[] |
pool
The initial pool buffer. |
(package private) int |
pp
Index of next constant to be entered. |
| Constructor Summary | |
|---|---|
Pool()
Construct an empty pool. |
|
Pool(int pp,
java.lang.Object[] pool)
Construct a pool with given number of elements and element array. |
|
| Method Summary | |
|---|---|
private void |
doublePool()
Double pool buffer in size. |
int |
get(java.lang.Object o)
Return the given object's index in the pool, or -1 if object is not in there. |
int |
numEntries()
Return the number of entries in the constant pool. |
int |
put(java.lang.Object value)
Place an object in the pool, unless it is already there. |
void |
reset()
Remove everything from this pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_ENTRIES
public static final int MAX_STRING_LENGTH
int pp
java.lang.Object[] pool
java.util.Map<java.lang.Object,java.lang.Integer> indices
| Constructor Detail |
|---|
public Pool(int pp,
java.lang.Object[] pool)
public Pool()
| Method Detail |
|---|
public int numEntries()
public void reset()
private void doublePool()
public int put(java.lang.Object value)
public int get(java.lang.Object o)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||