|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectitec.minicompiler.Token
itec.minicompiler.NumberToken
The NumberToken
implements a number found in the source code.
It contains the value of the number together with the the kind.
Field Summary | |
private int |
value
The value of the number represented by the NumberToken |
Fields inherited from class itec.minicompiler.Token |
|
Constructor Summary | |
NumberToken(int k,
int v)
Initialize the NumberToken with a kind k and
a value v . |
Method Summary | |
int |
getValue()
Return the value of the actual NumberToken . |
void |
setValue(int v)
Set the value of the actual NumberToken . |
java.lang.String |
toString()
Generate a String-representation of the NumberToken . |
Methods inherited from class itec.minicompiler.Token |
getKind, setKind |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int value
NumberToken
Constructor Detail |
public NumberToken(int k, int v)
NumberToken
with a kind k
and
a value v
.
k
- The kind of the NumberToken
v
- The value of the represented numberMethod Detail |
public int getValue()
NumberToken
.
public void setValue(int v)
NumberToken
.
v
- The new value of the NumberToken
public java.lang.String toString()
NumberToken
.
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |