Home » openjdk-7 » com.sun.tools » javac » jvm » [javadoc | source]
com.sun.tools.javac.jvm
public class: Pool [javadoc | source]
java.lang.Object
   com.sun.tools.javac.jvm.Pool
An internal structure that corresponds to the constant pool of a classfile.

This is NOT part of any supported API. 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:
static class  Pool.Method   
static class  Pool.Variable   
Field Summary
public static final  int MAX_ENTRIES     
public static final  int MAX_STRING_LENGTH     
 int pp    Index of next constant to be entered. 
 Object[] pool    The initial pool buffer. 
 Map<Object, Integer> indices    A hashtable containing all constants in the pool. 
Constructor:
 public Pool() 
 public Pool(int pp,
    Object[] pool) 
    Construct a pool with given number of elements and element array.
Method from com.sun.tools.javac.jvm.Pool Summary:
get,   numEntries,   put,   reset
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.jvm.Pool Detail:
 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. Return the object's index in the pool.
 public  void reset() 
    Remove everything from this pool.