| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| private final int | |
| private Location | |
| public final TokenType | type
The type of this token. |
| public final String | value
The text of the token exactly as it appears in the source code. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| columnNumber | back to summary |
|---|---|
| private final int columnNumber | |
| fileName | back to summary |
|---|---|
| private final String fileName
| |
| lineNumber | back to summary |
|---|---|
| private final int lineNumber | |
| location | back to summary |
|---|---|
| private Location location
| |
| type | back to summary |
|---|---|
| public final TokenType type The type of this token.
Strictly speaking, this field is redundant, because the token type can always be deduced from the token
value, e.g. iff the value begins with "'", then the type is | |
| value | back to summary |
|---|---|
| public final String value The text of the token exactly as it appears in the source code.
Iff this token represents a keyword, | |
| Token | back to summary |
|---|---|
| public Token(String fileName, int lineNumber, int columnNumber, TokenType type, String value) | |
| Token | back to summary |
|---|---|
| public Token(Location location, TokenType type, String value) | |
| getLocation | back to summary |
|---|---|
public Location getLocation()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |