|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<APoolInfo>
edu.rice.cs.cunit.classFile.constantPool.ConstantPool
public class ConstantPool
Constant pool.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ConstantPool()
Constructs an empty constant pool with an initial capacity of ten. |
|
ConstantPool(java.util.Collection<? extends APoolInfo> aPoolInfos)
Constructs a constant pool containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
ConstantPool(int initialCapacity)
Constructs an empty constant pool with the specified initial capacity. |
|
| Method Summary | |
|---|---|
short |
indexOf(APoolInfo item)
Return the index of the pool item in the pool. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ConstantPool(int initialCapacity)
initialCapacity - the initial capacity of the constant pool.
java.lang.IllegalArgumentException - if the specified initial capacity is negativepublic ConstantPool()
public ConstantPool(java.util.Collection<? extends APoolInfo> aPoolInfos)
aPoolInfos - the collection whose elements are to be placed into this constant pool.
java.lang.NullPointerException - if the specified collection is null.| Method Detail |
|---|
public short indexOf(APoolInfo item)
item - item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||