|
org.netbeans.modules.parsing.api/1 1.55.0 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.parsing.api.ResultIterator
public final class ResultIterator
ResultIterator allows to iterate tree of embedded blocks of sources, and
request parse results on different levels. You can force parsing of all
blocks of embedded Sources, 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.
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
ParseExceptionpublic Iterable<Embedding> getEmbeddings()
Iterator of all embeddings.public ResultIterator getResultIterator(Embedding embedding)
ResultIterator for one Embedding.
embedding - A embedding.
ResultIterator for one Embedding.
|
org.netbeans.modules.parsing.api/1 1.55.0 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||