|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.interpreter.Token
public class Token
Representation of a token (language element). Currently there are only variables and strings recognized as token types.
| Nested Class Summary | |
|---|---|
static class |
Token.Type
|
| Field Summary | |
|---|---|
java.lang.String |
name
|
Token.Type |
type
|
| Constructor Summary | |
|---|---|
Token(java.lang.String name,
Token.Type type)
Create a new token of the given type with the given value. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String name
public final Token.Type type
| Constructor Detail |
|---|
public Token(java.lang.String name,
Token.Type type)
name - the token value (e.g. variable name)type - the token type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||