|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.JLex.JavaLexBitSet
final class JavaLexBitSet
A set of bits. The set automatically grows as more bits are needed.
| Field Summary | |
|---|---|
(package private) long[] |
bits
|
(package private) static int |
BITS
|
(package private) static int |
MASK
|
| Constructor Summary | |
|---|---|
JavaLexBitSet()
Creates an empty set. |
|
JavaLexBitSet(int nbits)
Creates an empty set with the specified size. |
|
| Method Summary | |
|---|---|
void |
and(JavaLexBitSet set)
Logically ANDs this bit set with the specified set of bits. |
void |
clear(int bit)
Clears a bit. |
java.lang.Object |
clone()
Clones the JavaLexBitSet. |
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object. |
boolean |
get(int bit)
Gets a bit. |
int |
hashCode()
Gets the hashcode. |
private int |
nbits2size(int nbits)
|
void |
or(JavaLexBitSet set)
Logically ORs this bit set with the specified set of bits. |
private void |
resize(int nbits)
|
void |
set(int bit)
Sets a bit. |
int |
size()
Calculates and returns the set's size |
java.lang.String |
toString()
Converts the JavaLexBitSet to a String. |
void |
xor(JavaLexBitSet set)
Logically XORs this bit set with the specified set of bits. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final int BITS
static final int MASK
long[] bits
| Constructor Detail |
|---|
public JavaLexBitSet()
public JavaLexBitSet(int nbits)
nbits - the size of the set| Method Detail |
|---|
private int nbits2size(int nbits)
private void resize(int nbits)
public void set(int bit)
bit - the bit to be setpublic void clear(int bit)
bit - the bit to be clearedpublic boolean get(int bit)
bit - the bit to be gottenpublic void and(JavaLexBitSet set)
set - the bit set to be ANDed withpublic void or(JavaLexBitSet set)
set - the bit set to be ORed withpublic void xor(JavaLexBitSet set)
set - the bit set to be XORed withpublic int hashCode()
hashCode in class java.lang.Objectpublic int size()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||