soot.util
Class BitVector
java.lang.Object
soot.util.BitVector
- public class BitVector
- extends Object
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.
- Author:
- Ondrej Lhotak
BitVector
public BitVector()
BitVector
public BitVector(int numBits)
and
public void and(BitVector other)
andNot
public void andNot(BitVector other)
clear
public void clear(int bit)
clone
public Object clone()
equals
public boolean equals(Object o)
get
public boolean get(int bit)
hashCode
public int hashCode()
length
public int length()
copyFrom
public void copyFrom(BitVector other)
or
public void or(BitVector other)
xor
public void xor(BitVector other)
set
public boolean set(int bit)
size
public int size()
toString
public String toString()
orAndAndNot
public boolean orAndAndNot(BitVector orset,
BitVector andset,
BitVector andnotset)
- Computes this = this OR ((orset AND andset ) AND (NOT andnotset))
Returns true iff this is modified.
and
public static BitVector and(BitVector set1,
BitVector set2)
or
public static BitVector or(BitVector set1,
BitVector set2)
iterator
public BitSetIterator iterator()