|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.dom.BitArray
public class BitArray
Field Summary | |
---|---|
private int |
_bit
|
private int[] |
_bits
|
private int |
_bitSize
|
(package private) int |
_first
|
private int |
_int
|
private int |
_intSize
|
(package private) int |
_last
|
private int |
_mask
|
private static int[] |
_masks
|
private int |
_node
|
private int |
_pos
This method returns the Nth bit that is set in the bit array. |
private static boolean |
DEBUG_ASSERTIONS
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BitArray()
Constructor. |
|
BitArray(int size)
|
|
BitArray(int size,
int[] bits)
|
Method Summary | |
---|---|
BitArray |
cloneArray()
|
int[] |
data()
Returns the integer array in which the bit array is contained |
boolean |
getBit(int bit)
Returns true if the given bit is set |
int |
getBitNumber(int pos)
|
int |
getMask()
See setMask() |
int |
getNextBit(int startBit)
Returns the next set bit from a given position |
BitArray |
merge(BitArray other)
Merge two bit arrays. |
void |
readExternal(java.io.ObjectInput in)
Read the whole tree from a file (serialized) |
void |
resize(int newSize)
Resizes the bit array - try to avoid using this method!!! |
void |
setBit(int bit)
Sets a given bit |
void |
setMask(int mask)
Set the mask for this bit array. |
int |
size()
Returns the size of this bit array (in bits). |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private int[] _bits
private int _bitSize
private int _intSize
private int _mask
private static final int[] _masks
private static final boolean DEBUG_ASSERTIONS
private int _pos
private int _node
private int _int
private int _bit
int _first
int _last
Constructor Detail |
---|
public BitArray()
public BitArray(int size)
public BitArray(int size, int[] bits)
Method Detail |
---|
public void setMask(int mask)
public int getMask()
public final int size()
public final boolean getBit(int bit)
public final int getNextBit(int startBit)
public final int getBitNumber(int pos)
public final int[] data()
public final void setBit(int bit)
public final BitArray merge(BitArray other)
public final void resize(int newSize)
public BitArray cloneArray()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |