Package org.eclipse.xtext.parser
Class ParseResult
- java.lang.Object
-
- org.eclipse.xtext.parser.ParseResult
-
- All Implemented Interfaces:
IParseResult
public class ParseResult extends java.lang.Object implements IParseResult
The result of a parsing operation.
-
-
Constructor Summary
Constructors Constructor Description ParseResult(org.eclipse.emf.ecore.EObject rootAstElement, ICompositeNode rootNode, boolean hasErrors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 interfaceIParseResult
-
getSyntaxErrors
public java.lang.Iterable<INode> getSyntaxErrors()
- Specified by:
getSyntaxErrors
in interfaceIParseResult
-
getRootNode
public ICompositeNode getRootNode()
- Specified by:
getRootNode
in interfaceIParseResult
-
setRootNode
public void setRootNode(ICompositeNode rootNode)
-
hasSyntaxErrors
public boolean hasSyntaxErrors()
- Specified by:
hasSyntaxErrors
in interfaceIParseResult
-
-