|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.util.BitSet
A BitSet implementation based on Kaffe 1.0.6. The API is identical except for the addition of an efficient iterator (see also BitSetIterator). Also, unlike the Kaffe BitSet, this BitSet is unsynchronized (for efficiency purposes.
Constructor Summary | |
BitSet()
Create a new BitSet. |
|
BitSet(int nr)
Create a new BitSet that can hold nr bits. |
Method Summary | |
void |
and(BitSet bitset)
Performs a logical AND of this set and the argument bit set. |
void |
andNot(BitSet bitset)
Performs a logical AND of this set and the COMPLEMENT of the argument bit set. |
void |
clear(int bit)
Clear a bit in the set. |
java.lang.Object |
clone()
Cloning this BitSet produces a new BitSet that is equal to it. |
boolean |
equals(java.lang.Object obj)
Compares this object againts the specified object. |
boolean |
get(int bit)
Returns the value of the bit in the set. |
int |
hashCode()
Returns a hash code value for this bit set. |
BitSetIterator |
iterator()
Returns an iterator over this BitSet. |
int |
length()
Returns the index of the highest set bit in the set plus one. |
void |
or(BitSet bitset)
Performs a logical OR of this set and the argument bit set. |
void |
set(int bit)
Set a bit in the set. |
int |
size()
|
java.lang.String |
toString()
Returns a string representation of this bit set. |
void |
xor(BitSet bitset)
Performs a logical EXCLUSIVE OR of this set and the argument bit set. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BitSet()
public BitSet(int nr)
nr
- the inital size of the set.Method Detail |
public BitSetIterator iterator()
public void set(int bit)
bit
- the bit to set.public void clear(int bit)
bit
- the bit to clear.public boolean get(int bit)
bit
- the bit to check.
public int length()
public int size()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void and(BitSet bitset)
public void andNot(BitSet bitset)
public void or(BitSet bitset)
public void xor(BitSet bitset)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |