| Modifier and Type | Method and Description |
|---|---|
Snippet |
Lexer.convert(Source source) |
| Modifier and Type | Field and Description |
|---|---|
static ContextComponent<Snippet> |
Components.CURRENT_SOURCE
Represents the currently parsed source
|
static ContextComponent<Snippet> |
Components.SOURCE
Represents the current source of script
|
| Modifier and Type | Method and Description |
|---|---|
T |
SourceParser.parse(Context context,
Snippet source)
Parse custom source
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable Object |
Handler.handle(Context context,
Channel channel,
Snippet source)
Handle source, possible results:
InterpreterFailure - that will be stored and printed if there is no matching handler
Exception - that will interrupt pipeline
boolean - true/false if matched or not
other/null - illegal return value
|
HandleResult<P> |
Pipeline.handle(Context context,
Channel channel,
Snippet source)
Search for the parser through the pipeline with untouched source
|
| Modifier and Type | Method and Description |
|---|---|
Snippet |
IndicatedSource.getIndicated()
Get the indicated fragment
|
Snippet |
IndicatedSource.getSource()
Get full source
|
| Modifier and Type | Method and Description |
|---|---|
default Snippet |
Snippet.getLine(int line)
Get tokens at the given line as a snippet
|
Snippet |
SourceStream.getOriginalSource()
Get original source used to create the stream
|
Snippet |
SourceStream.read(int length)
Read the specified amount of tokens
|
Snippet |
SourceStream.readLineResidue()
Read the rest of the current line
|
default Snippet |
Snippet.reversed()
Reverse tokens and get'em as a new snippet
|
default Snippet[] |
Snippet.split(Token delimiter)
Split snippet using the given delimiter.
|
default Snippet |
Snippet.subSource(int fromIndex,
int toIndex)
Returns a view of the portion of this snippet between the specified fromIndex, inclusive, and toIndex exclusive.
|
default Snippet |
Snippet.toSnippet() |
Snippet |
Snippetable.toSnippet()
Converts current object into the
Snippet |
Snippet |
SourceStream.toSnippet()
Get current source as snippet
|
default Snippet |
TokenInfo.toSnippet() |
| Modifier and Type | Method and Description |
|---|---|
void |
Snippet.addTokens(Snippet snippet)
Add tokens to the current snippet
|
static boolean |
SnippetUtils.isEmpty(@Nullable Snippet snippet)
isEmpty() with null support |
| Modifier and Type | Method and Description |
|---|---|
static Type |
PandaImportsUtils.getTypeOrThrow(Context context,
String className,
@Nullable Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
static io.vavr.control.Option<Snippet> |
TypeDeclarationUtils.readType(Snippet source) |
static io.vavr.control.Option<Snippet> |
TypeDeclarationUtils.readType(SynchronizedSource source) |
static Optional<Snippet> |
TypeDeclarationUtils.readTypeBackwards(Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TypeDeclarationUtils.isArray(Snippet type) |
static io.vavr.control.Option<Snippet> |
TypeDeclarationUtils.readType(Snippet source) |
static Optional<Snippet> |
TypeDeclarationUtils.readTypeBackwards(Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
PandaLexer.convert(Source source) |
static Snippet |
PandaLexerUtils.convert(String location,
String source) |
| Modifier and Type | Method and Description |
|---|---|
static String |
PandaLexerUtils.toString(Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
HandleResult<P> |
PandaPipeline.handle(Context context,
Channel channel,
Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
PatternResult.getSource()
Get matched source
|
| Modifier and Type | Method and Description |
|---|---|
Snippet |
Result.getSource() |
| Modifier and Type | Method and Description |
|---|---|
Result |
CustomPattern.match(Snippet source) |
Result |
CustomPattern.match(Snippet source,
@Nullable CustomPatternData data) |
| Constructor and Description |
|---|
Result(Snippet source,
Map<String,Object> results) |
| Modifier and Type | Method and Description |
|---|---|
static CustomPatternElementBuilder<?,? extends Buildable<Snippet>> |
SectionElement.create(String id) |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
LinearPatternResult.getSource() |
| Modifier and Type | Method and Description |
|---|---|
LinearPatternResult |
LinearPattern.match(Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
PandaIndicatedSource.getIndicated() |
Snippet |
PandaIndicatedSource.getSource() |
| Modifier and Type | Class and Description |
|---|---|
class |
PandaSnippet |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
SynchronizedSource.getAvailableSource()
Get available source to read as snippet
|
Snippet |
SynchronizedSource.getLastReadSource()
Get source that has been read since the last backup
|
Snippet |
PandaSourceStream.getOriginalSource() |
Snippet |
SynchronizedSource.getSource()
The original source used to create
SynchronizedSource |
Snippet |
PandaSourceStream.read(int length) |
Snippet |
PandaSourceStream.readLineResidue() |
Snippet |
PandaSourceStream.toSnippet() |
| Modifier and Type | Method and Description |
|---|---|
void |
PandaSnippet.addTokens(Snippet snippet) |
| Constructor and Description |
|---|
PandaSourceStream(Snippet source) |
SynchronizedSource(Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
Section.getContent() |
| Constructor and Description |
|---|
Section(TokenInfo openingSeparator,
Snippet content,
TokenInfo closingSeparator) |
| Modifier and Type | Method and Description |
|---|---|
static Snippet |
SequencesUtils.uncommented(Snippet source) |
| Modifier and Type | Method and Description |
|---|---|
static Snippet |
SequencesUtils.uncommented(Snippet source) |
Copyright © 2020. All rights reserved.