org.eclipse.xtext.parser
Class ParseResult

java.lang.Object
  extended by org.eclipse.xtext.parser.ParseResult
All Implemented Interfaces:
IParseResult

public class ParseResult
extends java.lang.Object
implements IParseResult

The result of a parsing operation.

Author:
Jan Köhnlein

Constructor Summary
ParseResult(org.eclipse.emf.ecore.EObject rootAstElement, ICompositeNode rootNode, boolean hasErrors)
           
 
Method Summary
 org.eclipse.emf.ecore.EObject getRootASTElement()
           
 ICompositeNode getRootNode()
           
 java.lang.Iterable<INode> getSyntaxErrors()
           
 boolean hasSyntaxErrors()
           
 void setRootASTElement(org.eclipse.emf.ecore.EObject rootAstElement)
           
 void setRootNode(ICompositeNode rootNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseResult

public ParseResult(org.eclipse.emf.ecore.EObject rootAstElement,
                   ICompositeNode rootNode,
                   boolean hasErrors)
Method Detail

setRootASTElement

public void setRootASTElement(org.eclipse.emf.ecore.EObject rootAstElement)

getRootASTElement

public org.eclipse.emf.ecore.EObject getRootASTElement()
Specified by:
getRootASTElement in interface IParseResult

getSyntaxErrors

public java.lang.Iterable<INode> getSyntaxErrors()
Specified by:
getSyntaxErrors in interface IParseResult

getRootNode

public ICompositeNode getRootNode()
Specified by:
getRootNode in interface IParseResult

setRootNode

public void setRootNode(ICompositeNode rootNode)

hasSyntaxErrors

public boolean hasSyntaxErrors()
Specified by:
hasSyntaxErrors in interface IParseResult