public class Token extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Token.Type
Token type.
|
Modifier and Type | Field and Description |
---|---|
SourceInfo |
source
Token source info (filename and line number)
|
String |
text
Token text--raw data from the source file
|
Token.Type |
type
Token type
|
Constructor and Description |
---|
Token(Token.Type type) |
Token(Token.Type type,
String text) |
Token(Token.Type type,
String text,
SourceInfo source) |
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns a nicely-formatted representation suitable for debug printing
|
static String |
typeToString(Token.Type type) |
public Token.Type type
public String text
public SourceInfo source
public Token(Token.Type type)
public Token(Token.Type type, String text)
public Token(Token.Type type, String text, SourceInfo source)
public static String typeToString(Token.Type type)
Copyright © 2019. All rights reserved.