public final class TokenRole extends Role<JavaTokenNode>
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAG_DELIMITER |
static byte |
FLAG_KEYWORD |
static byte |
FLAG_OPERATOR |
ROLE_INDEX_BITS| Constructor and Description |
|---|
TokenRole(java.lang.String token) |
TokenRole(java.lang.String token,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
java.lang.String |
getToken() |
boolean |
isDelimiter() |
boolean |
isKeyword() |
boolean |
isOperator() |
get, getIndex, getNodeType, getNullObject, isValid, toStringpublic static final byte FLAG_KEYWORD
public static final byte FLAG_OPERATOR
public static final byte FLAG_DELIMITER