| java.lang.Object org.apache.harmony.pack200.bytecode.ClassPoolSet
ClassPoolSet | public class ClassPoolSet (Code) | | This class implements the special set (which is aware of
domains) used when generating ClassConstantPools.
It's called a Set, but isn't quite a Collection - it
doesn't implement all the API required.
|
Inner Class :class GeneralComparator implements Comparator | |
Inner Class :class PoolComparator extends GeneralComparator | |
Inner Class :class SignatureAsciizComparator extends GeneralComparator | |
Inner Class :class NormalAsciizComparator extends GeneralComparator | |
ClassPoolSet | public ClassPoolSet()(Code) | | |
add | public ConstantPoolEntry add(Object entry)(Code) | | Add the parameter to the receiver. If the parameter
already exists in a higher precedence domain, answer
that. If the parameter exists in a lower precedence
domain, remove it from the lower domain and add it to
the higher one.
Parameters: entry - ConstantPoolEntry to add ConstantPoolEntry from the domain where it's stored |
findFirstSetContaining | protected int findFirstSetContaining(ConstantPoolEntry entry)(Code) | | Answer the index of the first set which contains the entry
passed in as the parameter.
Parameters: entry - ConstantPoolEntry to test for (with .contains()) int index of the first set containing the entry |
partialIterator | public Iterator partialIterator(int start, int stop)(Code) | | Answer an iterator which iterates over the sets
from sets[start] to sets[stop] only.
Parameters: start - int the first set over which iteration will occur. Parameters: stop - int the last set over which iteration will occur Iterator |
|
|