public abstract static class Parser.Result extends Object
Task
.
Implementation of this class should provide AST for parsed file,
semantic information, etc. A new instance of Result is created for each
Task. When Task execution is finished, task should be invalidated.Modifier | Constructor and Description |
---|---|
protected |
Result(Snapshot _snapshot)
Creates a
Parser.Result for given snapshot |
Modifier and Type | Method and Description |
---|---|
Snapshot |
getSnapshot()
Returns a
Snapshot represented by this Parser.Result |
protected abstract void |
invalidate()
This method is called by Parsing API, when
Task is finished. |
protected boolean |
processingFinished()
Return
true if the parser was able to process the file fully. |
protected Result(Snapshot _snapshot)
Parser.Result
for given snapshotsnapshot
- public Snapshot getSnapshot()
Snapshot
represented by this Parser.Result
Snapshot
, which was used for producing this
parser result.protected abstract void invalidate()
Task
is finished.protected boolean processingFinished()
true
if the parser was able to process the file fully.
Return false
, if the parser had to stop the processing (e.g. for
memory limit reasons), and the file should be processed again.