soot.util
Class BitVector

java.lang.Object
  |
  +--soot.util.BitVector

public class BitVector
extends java.lang.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.


Constructor Summary
BitVector()
           
BitVector(int numBits)
           
 
Method Summary
 void and(BitVector other)
           
static BitVector and(BitVector set1, BitVector set2)
           
 void andNot(BitVector other)
           
 void clear(int bit)
           
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 boolean get(int bit)
           
 int hashCode()
           
 BitSetIterator iterator()
           
 int length()
           
 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()
           
 java.lang.String toString()
           
 void xor(BitVector other)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BitVector

public BitVector()

BitVector

public BitVector(int numBits)
Method Detail

and

public void and(BitVector other)

andNot

public void andNot(BitVector other)

clear

public void clear(int bit)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

get

public boolean get(int bit)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

length

public int length()

or

public void or(BitVector other)

xor

public void xor(BitVector other)

set

public boolean set(int bit)

size

public int size()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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.
Parameters:
set - a bit set.

and

public static BitVector and(BitVector set1,
                            BitVector set2)

or

public static BitVector or(BitVector set1,
                           BitVector set2)

iterator

public BitSetIterator iterator()