|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectParser
class Parser
Class which provides methods for extracting information from the representations contained within a holder.
Field Summary | |
---|---|
private int |
bitIndex
|
private boolean |
doDecimal
|
private Holder |
holder
|
private int |
numberBits
|
Constructor Summary | |
---|---|
Parser(Holder holder,
boolean doDecimal)
Class constructor for Parser class |
Method Summary | |
---|---|
int |
getBit(int bitNumber)
Given a bit number return the value of the bit from the appropriate representation |
boolean |
peekForOne()
Peek to see if there is another one in the representation |
void |
reset()
Calling reset sets bitIndex to start scanning over from the beginning. |
int |
scanForOne()
Scan representation in the appropriate direction to find the next one bit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Holder holder
private boolean doDecimal
private int numberBits
private int bitIndex
Constructor Detail |
---|
public Parser(Holder holder, boolean doDecimal)
holder
- Holder object containing a representationdoDecimal
- true if the decimal portion of the representation
should be processed. false if the fraction portion should be
processed.Method Detail |
---|
public int getBit(int bitNumber)
public int scanForOne()
public boolean peekForOne()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |