|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.util.BitVector
public class BitVector
This is the Soot internal implementation of java.util.BitSet with Felix and Jerome's clever efficient iterator. It was re-implemented from scratch by Ondrej Lhotak to avoid licence issues. It was named BitVector rather than BitSet to avoid a name clash with the one in the standard Java library.
Constructor Summary | |
---|---|
BitVector()
|
|
BitVector(BitVector other)
Copy constructor |
|
BitVector(int numBits)
|
Method Summary | |
---|---|
void |
and(BitVector other)
|
static BitVector |
and(BitVector set1,
BitVector set2)
|
void |
andNot(BitVector other)
|
int |
cardinality()
Count the number of ones in the bitvector. |
void |
clear(int bit)
|
Object |
clone()
|
void |
copyFrom(BitVector other)
|
boolean |
equals(Object o)
|
boolean |
get(int bit)
|
int |
hashCode()
|
BitSetIterator |
iterator()
|
int |
length()
Returns index of highest-numbered one bit. |
void |
or(BitVector other)
|
static BitVector |
or(BitVector set1,
BitVector set2)
|
boolean |
orAndAndNot(BitVector orset,
BitVector andset,
BitVector andnotset)
Computes this = this OR ((orset AND andset ) AND (NOT andnotset)) Returns true iff this is modified. |
boolean |
set(int bit)
|
int |
size()
Returns number of bits in the underlying array. |
String |
toString()
|
void |
xor(BitVector other)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BitVector()
public BitVector(BitVector other)
public BitVector(int numBits)
Method Detail |
---|
public void and(BitVector other)
public void andNot(BitVector other)
public void clear(int bit)
public Object clone()
clone
in class Object
public boolean equals(Object o)
equals
in class Object
public boolean get(int bit)
public int hashCode()
hashCode
in class Object
public int length()
public void copyFrom(BitVector other)
public void or(BitVector other)
public int cardinality()
public void xor(BitVector other)
public boolean set(int bit)
public int size()
public String toString()
toString
in class Object
public boolean orAndAndNot(BitVector orset, BitVector andset, BitVector andnotset)
set
- a bit set.public static BitVector and(BitVector set1, BitVector set2)
public static BitVector or(BitVector set1, BitVector set2)
public BitSetIterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |