public final class PandaSnippet extends Object implements Snippet
| Constructor and Description |
|---|
PandaSnippet() |
PandaSnippet(List<? extends TokenInfo> representations) |
PandaSnippet(List<? extends TokenInfo> representations,
boolean clone) |
PandaSnippet(TokenInfo... representations) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToken(TokenInfo tokenInfo)
Add token to the snippet
|
void |
addTokens(Snippet snippet)
Add tokens to the current snippet
|
boolean |
equals(Object to) |
List<? extends TokenInfo> |
getTokensRepresentations()
Get tokens as list
|
int |
hashCode() |
TokenInfo[] |
toArray()
Convert snippet into the array of tokens
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasSource, contains, get, getFirst, getLast, getLast, getLine, getLocation, hasElement, indexOf, isEmpty, iterator, remove, removeToken, reversed, size, split, startsWith, subSource, toSnippetforEach, spliteratortoStreampublic PandaSnippet()
public PandaSnippet(TokenInfo... representations)
public void addTokens(Snippet snippet)
Snippetpublic void addToken(TokenInfo tokenInfo)
Snippetpublic TokenInfo[] toArray()
Snippetpublic List<? extends TokenInfo> getTokensRepresentations()
SnippetgetTokensRepresentations in interface SnippetCopyright © 2020. All rights reserved.