public class Token
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
data |
(package private) int |
start |
(package private) TokenType |
type |
| Constructor and Description |
|---|
Token(TokenType type,
int start,
java.lang.String data)
Constructor of the class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
final TokenType type
final int start
final java.lang.String data
public Token(TokenType type, int start, java.lang.String data)
type - Type of the token.start - Start position in input (for error reporting).data - The actual token, e.g., a specific identifier, comparison operator or literal included in the logical expression.