org.netbeans.modules.parsing.api/1 1.26.0 2

org.netbeans.modules.parsing.spi
Class Parser.Result

java.lang.Object
  extended by org.netbeans.modules.parsing.spi.Parser.Result
Enclosing class:
Parser

public abstract static class Parser.Result
extends Object

Represents result of parsing created for one specific 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.


Constructor Summary
protected Parser.Result(Snapshot _snapshot)
          Creates a Parser.Result for given snapshot
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser.Result

protected Parser.Result(Snapshot _snapshot)
Creates a Parser.Result for given snapshot

Parameters:
snapshot -
Method Detail

getSnapshot

public Snapshot getSnapshot()
Returns a Snapshot represented by this Parser.Result

Returns:
Returns a Snapshot, which was used for producing this parser result.

invalidate

protected abstract void invalidate()
This method is called by Parsing API, when Task is finished.


org.netbeans.modules.parsing.api/1 1.26.0 2

Built on November 22 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.