| Modifier and Type | Method and Description |
|---|---|
@Nullable ExpressionResult |
ExpressionSubparserWorker.next(ExpressionContext context,
TokenInfo token)
Handle a next token.
|
| Modifier and Type | Method and Description |
|---|---|
default TokenInfo |
Snippet.get(int index)
Get token at the given position
|
TokenInfo |
SourceStream.getCurrent()
Get current token
|
default TokenInfo |
Snippet.getFirst()
Get the first token
|
default TokenInfo |
Snippet.getLast()
Get the last token
|
default @Nullable TokenInfo |
Snippet.getLast(int lastIndex)
Get token at the given index counting backwards of snippet
|
TokenInfo |
SourceStream.read()
Read the next token
|
default TokenInfo |
Snippet.remove(int index)
Remove token at the given index
|
TokenInfo[] |
Snippet.toArray()
Convert snippet into the array of tokens
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends TokenInfo> |
Snippet.getTokensRepresentations()
Get tokens as list
|
default Iterator<TokenInfo> |
Snippet.iterator()
Snippet supports iterations
|
| Modifier and Type | Method and Description |
|---|---|
void |
Snippet.addToken(TokenInfo tokenInfo)
Add token to the snippet
|
default void |
Snippet.removeToken(TokenInfo tokenInfo)
Remove token from snippet
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TypeDeclarationUtils.isArraySeparator(@Nullable TokenInfo token) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
PandaExpressionParserWorker.next(ExpressionContext context,
TokenInfo token) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TokenTypeVerifier.verify(Map<String,Object> results,
SynchronizedSource source,
TokenInfo content) |
| Modifier and Type | Class and Description |
|---|---|
class |
MutableTokenInfo |
class |
PandaTokenInfo |
| Modifier and Type | Method and Description |
|---|---|
TokenInfo |
PandaSourceStream.getCurrent() |
TokenInfo |
SynchronizedSource.getNext()
Get next token without updating index
|
@Nullable TokenInfo |
SynchronizedSource.getPrevious()
Get previous token
|
@Nullable TokenInfo |
SynchronizedSource.getPrevious(int previous)
Get previous token
|
TokenInfo |
SynchronizedSource.next()
Read the next token and move index
|
static TokenInfo |
PandaTokenInfo.of(Token token) |
static TokenInfo |
PandaTokenInfo.of(TokenType type,
String value) |
TokenInfo |
PandaSourceStream.read() |
TokenInfo[] |
PandaSnippet.toArray() |
static TokenInfo[] |
TokenUtils.toPseudoRepresentations(Token... tokens) |
| Modifier and Type | Method and Description |
|---|---|
Optional<TokenInfo> |
SynchronizedSource.getCurrent()
Get current token
|
List<? extends TokenInfo> |
PandaSnippet.getTokensRepresentations() |
Iterator<TokenInfo> |
SynchronizedSource.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
PandaSnippet.addToken(TokenInfo tokenInfo) |
static boolean |
TokenUtils.contentEquals(@Nullable TokenInfo representation,
Token... tokens) |
static boolean |
TokenUtils.isTypeOf(TokenInfo representation,
TokenType type) |
void |
MutableTokenInfo.setRepresentation(TokenInfo representation) |
| Constructor and Description |
|---|
PandaSnippet(TokenInfo... representations) |
| Constructor and Description |
|---|
PandaSnippet(List<? extends TokenInfo> representations) |
PandaSnippet(List<? extends TokenInfo> representations,
boolean clone) |
| Modifier and Type | Method and Description |
|---|---|
TokenInfo |
Section.getClosingSeparator() |
TokenInfo |
Section.getOpeningSeparator() |
| Constructor and Description |
|---|
Section(TokenInfo openingSeparator,
Snippet content,
TokenInfo closingSeparator) |
Copyright © 2020. All rights reserved.