|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectitec.minicompiler.Token
The Token
implements a sequence of characters and/or numbers the
Scanner
can work with.
The Token
is defined abstract so that no instance of it can be created
but a subclass with more specialised attributes has to be used.
Field Summary | |
private int |
kind
The Kind of the Token (Keyword, Ident, Number, ...) |
Constructor Summary | |
Token()
|
Method Summary | |
int |
getKind()
Return the kind of the actual Token . |
void |
setKind(int k)
Set the kind of the actual Token . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int kind
Constructor Detail |
public Token()
Method Detail |
public int getKind()
Token
.
Token
public void setKind(int k)
Token
.
k
- The new kind of the Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |