public final class ResultIterator extends Object
Source
s, or you can find your favourite one and
skip parsing of rest of them. In some situations you can even parse embedded
language without parsing of surrounding block.Modifier and Type | Method and Description |
---|---|
Iterable<Embedding> |
getEmbeddings()
Allows iterate all embedded sources.
|
Parser.Result |
getParserResult()
Returns parse
Parser.Result for current source or null . |
Parser.Result |
getParserResult(int offset)
Returns parse
Parser.Result for deepest embedding on given offset or null . |
ResultIterator |
getResultIterator(Embedding embedding)
Returns
ResultIterator for one Embedding . |
Snapshot |
getSnapshot() |
public Snapshot getSnapshot()
public Parser.Result getParserResult() throws ParseException
Parser.Result
for current source or null
.Parser.Result
for current source or null
.ParseException
public Parser.Result getParserResult(int offset) throws ParseException
Parser.Result
for deepest embedding on given offset or null
.Parser.Result
for current source or null
.ParseException
public Iterable<Embedding> getEmbeddings()
Iterator
of all embeddings.public ResultIterator getResultIterator(Embedding embedding)
ResultIterator
for one Embedding
.embedding
- A embedding.ResultIterator
for one Embedding
.