|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.intset.BitVectorBase<OffsetBitVector>
com.ibm.wala.util.intset.OffsetBitVector
public final class OffsetBitVector
| Field Summary |
|---|
| Fields inherited from class com.ibm.wala.util.intset.BitVectorBase |
|---|
bits, BITS_PER_UNIT, DEBUG, LOG_BITS_PER_UNIT, LOW_MASK, MASK |
| Constructor Summary | |
|---|---|
OffsetBitVector()
|
|
OffsetBitVector(int offset,
int nbits)
Creates an empty string with the specified size. |
|
OffsetBitVector(OffsetBitVector s)
Creates a copy of a Bit String |
|
| Method Summary | |
|---|---|
void |
and(OffsetBitVector set)
Logically ANDs this bit set with the specified set of bits. |
static OffsetBitVector |
and(OffsetBitVector b1,
OffsetBitVector b2)
Return a new bit string as the AND of two others. |
void |
andNot(OffsetBitVector set)
|
static OffsetBitVector |
andNot(OffsetBitVector b1,
OffsetBitVector b2)
Return a new bit string as the AND of two others. |
void |
clear(int bit)
Clears a bit. |
void |
copyBits(OffsetBitVector set)
Copies the values of the bits in the specified set into this set. |
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object. |
boolean |
get(int bit)
Gets a bit. |
int |
getOffset()
|
boolean |
intersectionEmpty(OffsetBitVector set)
Check if the intersection of the two sets is empty |
boolean |
isSubset(OffsetBitVector other)
|
int |
length()
Calculates and returns the set's size in bits. |
int |
max()
|
int |
nextSetBit(int start)
|
void |
not()
Logically NOT this bit string |
static OffsetBitVector |
not(OffsetBitVector s)
Return the NOT of a bit string |
void |
or(OffsetBitVector set)
Logically ORs this bit set with the specified set of bits. |
static OffsetBitVector |
or(OffsetBitVector b1,
OffsetBitVector b2)
Return a new FixedSizeBitVector as the OR of two others |
boolean |
sameBits(OffsetBitVector set)
Compares this object against the specified object. |
void |
set(int bit)
Sets a bit. |
void |
setAll()
Sets all bits. |
java.lang.String |
toString()
Converts the FixedSizeBitVector to a String. |
void |
xor(OffsetBitVector set)
Logically XORs this bit set with the specified set of bits. |
| Methods inherited from class com.ibm.wala.util.intset.BitVectorBase |
|---|
clearAll, clone, contains, copyBits, hashCode, isZero, populationCount, subscript |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OffsetBitVector()
public OffsetBitVector(int offset,
int nbits)
nbits - the size of the stringpublic OffsetBitVector(OffsetBitVector s)
s - the string to copy
java.lang.IllegalArgumentException - if s is null| Method Detail |
|---|
public java.lang.String toString()
BitVectorBase
toString in class BitVectorBase<OffsetBitVector>public int getOffset()
public final void set(int bit)
set in class BitVectorBase<OffsetBitVector>bit - the bit to be setpublic final void clear(int bit)
clear in class BitVectorBase<OffsetBitVector>bit - the bit to be clearedpublic final boolean get(int bit)
get in class BitVectorBase<OffsetBitVector>bit - the bit to be gottenpublic int nextSetBit(int start)
nextSetBit in class BitVectorBase<OffsetBitVector>start -
public final void not()
public int max()
max in class BitVectorBase<OffsetBitVector>public final int length()
length in class BitVectorBase<OffsetBitVector>public final void setAll()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with
public final boolean intersectionEmpty(OffsetBitVector set)
intersectionEmpty in class BitVectorBase<OffsetBitVector>other - the set to check intersection withpublic final boolean sameBits(OffsetBitVector set)
sameBits in class BitVectorBase<OffsetBitVector>set - the object to compare with
public boolean isSubset(OffsetBitVector other)
isSubset in class BitVectorBase<OffsetBitVector>public final void copyBits(OffsetBitVector set)
set - the bit set to copy the bits from
java.lang.IllegalArgumentException - if set is nullpublic final void and(OffsetBitVector set)
and in class BitVectorBase<OffsetBitVector>set - the bit set to be ANDed withpublic final void or(OffsetBitVector set)
or in class BitVectorBase<OffsetBitVector>set - the bit set to be ORed withpublic final void xor(OffsetBitVector set)
xor in class BitVectorBase<OffsetBitVector>set - the bit set to be XORed withpublic void andNot(OffsetBitVector set)
andNot in class BitVectorBase<OffsetBitVector>vector - public static OffsetBitVector not(OffsetBitVector s)
public static OffsetBitVector and(OffsetBitVector b1,
OffsetBitVector b2)
public static OffsetBitVector or(OffsetBitVector b1,
OffsetBitVector b2)
public static OffsetBitVector andNot(OffsetBitVector b1,
OffsetBitVector b2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||