public class Token
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
IDENTIFIER |
static int |
KEYWORD |
static int |
NUMBER |
static int |
PUNCTUATOR |
static int |
STRING |
java.lang.String |
text
Represents the text value of this token.
|
int |
type
Represents the token type.
|
| Constructor and Description |
|---|
Token()
Empty constructor.
|
Token(int type,
java.lang.String text)
Construct a new token with given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
toString() |
public static final int KEYWORD
public static final int IDENTIFIER
public static final int NUMBER
public static final int STRING
public static final int PUNCTUATOR
public int type
public java.lang.String text
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.