|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.ParsedUnit
public class ParsedUnit
Purely a data structure used for returning units information from parsers. It contains, to speak of, no logic. For this reason, there also no unit tests for this class.
| Field Summary | |
|---|---|
private float |
amount
the number of units |
private boolean |
atEnd
is the next character the end of the command? so: ] or }] or the like |
private int |
charsParsed
how many chars were taken up with the number and the units? |
private int |
errorCode
if an error occured (unit = ERROR), what kind was it? |
private PlatyConst.unit |
unit
the type of unit. |
| Constructor Summary | |
|---|---|
ParsedUnit()
|
|
| Method Summary | |
|---|---|
float |
getAmount()
|
int |
getCharsParsed()
|
int |
getErrorCode()
|
PlatyConst.unit |
getUnit()
|
boolean |
isAtEnd()
|
void |
setAmount(float amount)
|
void |
setAtEnd(boolean atEnd)
|
void |
setCharsParsed(int charsParsed)
|
void |
setErrorCode(int errorCode)
|
void |
setUnit(PlatyConst.unit unit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private float amount
private PlatyConst.unit unit
private int errorCode
private int charsParsed
private boolean atEnd
| Constructor Detail |
|---|
public ParsedUnit()
| Method Detail |
|---|
public float getAmount()
public void setAmount(float amount)
public PlatyConst.unit getUnit()
public void setUnit(PlatyConst.unit unit)
public int getErrorCode()
public void setErrorCode(int errorCode)
public int getCharsParsed()
public void setCharsParsed(int charsParsed)
public boolean isAtEnd()
public void setAtEnd(boolean atEnd)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||