| Modifier and Type | Method and Description |
|---|---|
Token |
Lexeme.getAssociatedToken()
Get associated predefined token
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
TokenInfo
Wrapper for
Token that contains details about location of token in source |
| Modifier and Type | Method and Description |
|---|---|
default <T extends Token> |
TokenInfo.toToken()
Get token using
TokenInfo.getToken() method and cast it to the requested type |
default <T extends Token> |
TokenInfo.toToken(Class<T> type)
Get token using
TokenInfo.getToken() method and cast it to the requested type |
| Modifier and Type | Method and Description |
|---|---|
Token |
TokenInfo.getToken()
Get the wrapped token
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
Snippet.contains(Token... tokens)
Check if snippet contains at least one of the given token
|
default boolean |
TokenInfo.contentEquals(Token token)
Compare wrapped token with another token, utility method
|
default boolean |
Token.equals(@Nullable Token token) |
default int |
Snippet.indexOf(Token token)
Get index of the given token in snippet
|
default Snippet[] |
Snippet.split(Token delimiter)
Split snippet using the given delimiter.
|
default boolean |
Snippet.startsWith(Token... tokens)
Check if snippet starts with the given tokens
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
PandaVariableUtils.isAllowedName(Token token) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Result.has(Token token) |
| Modifier and Type | Method and Description |
|---|---|
VariantElement |
VariantElement.content(Token... tokens) |
| Modifier and Type | Class and Description |
|---|---|
class |
EqualableToken |
class |
MutableTokenInfo |
class |
PandaToken |
class |
PandaTokenInfo |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<Token> |
TokenUtils.TOKEN_ORDER_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
Token |
MutableTokenInfo.getToken() |
Token |
PandaTokenInfo.getToken() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TokenUtils.contains(Token[] tokens,
Token element) |
static boolean |
TokenUtils.contains(Token[] tokens,
Token element) |
static boolean |
TokenUtils.contentEquals(@Nullable TokenInfo representation,
Token... tokens) |
static boolean |
TokenUtils.hasName(Token token,
String name) |
static TokenInfo |
PandaTokenInfo.of(Token token) |
static TokenInfo[] |
TokenUtils.toPseudoRepresentations(Token... tokens) |
static boolean |
TokenUtils.valueEquals(Token token,
String... contents) |
| Constructor and Description |
|---|
PandaTokenInfo(Token token,
Location location) |
| Modifier and Type | Class and Description |
|---|---|
class |
Identifier |
class |
Indentation
Indentation determines the amount of whitespaces at the beginning of line.
|
class |
Section |
| Modifier and Type | Class and Description |
|---|---|
class |
Keyword |
| Modifier and Type | Class and Description |
|---|---|
class |
Literal |
| Modifier and Type | Class and Description |
|---|---|
class |
Operator |
| Modifier and Type | Class and Description |
|---|---|
class |
Separator |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SeparatorStack.check(Token token)
Check a next token
|
static @Nullable Separator |
Separators.valueOf(Token token) |
| Modifier and Type | Class and Description |
|---|---|
class |
Sequence |
class |
SequenceToken |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SequencesUtils.isComment(Token token) |
Copyright © 2020. All rights reserved.