org.eclipse.xtext.parsetree.reconstr.impl
Class TreeConstructionReportImpl

java.lang.Object
  extended by org.eclipse.xtext.parsetree.reconstr.impl.TreeConstructionReportImpl
All Implemented Interfaces:
IParseTreeConstructor.TreeConstructionReport

public class TreeConstructionReportImpl
extends java.lang.Object
implements IParseTreeConstructor.TreeConstructionReport

Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
protected  class TreeConstructionReportImpl.ErrorAcceptor
           
protected  class TreeConstructionReportImpl.TreeConstructionDiagnosticImpl
           
 
Field Summary
protected  java.util.SortedSet<Pair<java.lang.Integer,AbstractParseTreeConstructor.AbstractToken>> deadends
           
protected  TreeConstructionReportImpl.TreeConstructionDiagnosticImpl diagnostic
           
protected  ITokenSerializer.IEnumLiteralSerializer enumSerializer
           
protected  TreeConstructionNFAProvider nfaProvider
           
protected  org.eclipse.emf.ecore.EObject root
           
protected  AbstractParseTreeConstructor.AbstractToken success
           
protected  ITokenSerializer.IValueSerializer valueSerializer
           
 
Constructor Summary
TreeConstructionReportImpl()
           
 
Method Summary
protected  void addDeadEnd(int depth, AbstractParseTreeConstructor.AbstractToken deadend)
           
protected  java.lang.String checkUnconsumed(AbstractParseTreeConstructor.AbstractToken token, IEObjectConsumer instanceDescription)
           
 java.util.Set<org.eclipse.emf.ecore.EObject> collectConsumedEObjects()
           
protected  java.util.List<java.lang.String> collectDiagnostics(AbstractParseTreeConstructor.AbstractToken token)
           
protected  TreeConstructionReportImpl.TreeConstructionDiagnosticImpl createDiagnostic(AbstractParseTreeConstructor.AbstractToken token)
           
 java.util.List<AbstractParseTreeConstructor.AbstractToken> getDeadends()
           
protected  java.lang.String getDiagnosticMessage(AbstractParseTreeConstructor.AbstractToken token)
           
protected  java.lang.String getDiagnosticMessage(AbstractParseTreeConstructor.AssignmentToken token)
           
 java.util.List<IParseTreeConstructor.TreeConstructionDiagnostic> getDiagnostics()
           
 ITextRegion getPreviousLocation()
           
 AbstractParseTreeConstructor.AbstractToken getSuccess()
           
 boolean isSuccess()
           
 void setPreviousLocation(ITextRegion previousLocation)
           
 void setRoot(org.eclipse.emf.ecore.EObject root)
           
protected  void setSuccess(AbstractParseTreeConstructor.AbstractToken succes)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

deadends

protected java.util.SortedSet<Pair<java.lang.Integer,AbstractParseTreeConstructor.AbstractToken>> deadends

diagnostic

protected TreeConstructionReportImpl.TreeConstructionDiagnosticImpl diagnostic

enumSerializer

@Inject
protected ITokenSerializer.IEnumLiteralSerializer enumSerializer

nfaProvider

@Inject
protected TreeConstructionNFAProvider nfaProvider

root

protected org.eclipse.emf.ecore.EObject root

success

protected AbstractParseTreeConstructor.AbstractToken success

valueSerializer

@Inject
protected ITokenSerializer.IValueSerializer valueSerializer
Constructor Detail

TreeConstructionReportImpl

public TreeConstructionReportImpl()
Method Detail

addDeadEnd

protected void addDeadEnd(int depth,
                          AbstractParseTreeConstructor.AbstractToken deadend)

checkUnconsumed

protected java.lang.String checkUnconsumed(AbstractParseTreeConstructor.AbstractToken token,
                                           IEObjectConsumer instanceDescription)

collectConsumedEObjects

public java.util.Set<org.eclipse.emf.ecore.EObject> collectConsumedEObjects()

collectDiagnostics

protected java.util.List<java.lang.String> collectDiagnostics(AbstractParseTreeConstructor.AbstractToken token)

createDiagnostic

protected TreeConstructionReportImpl.TreeConstructionDiagnosticImpl createDiagnostic(AbstractParseTreeConstructor.AbstractToken token)

getDeadends

public java.util.List<AbstractParseTreeConstructor.AbstractToken> getDeadends()

getDiagnosticMessage

protected java.lang.String getDiagnosticMessage(AbstractParseTreeConstructor.AbstractToken token)

getDiagnosticMessage

protected java.lang.String getDiagnosticMessage(AbstractParseTreeConstructor.AssignmentToken token)

getDiagnostics

public java.util.List<IParseTreeConstructor.TreeConstructionDiagnostic> getDiagnostics()
Specified by:
getDiagnostics in interface IParseTreeConstructor.TreeConstructionReport

getPreviousLocation

public ITextRegion getPreviousLocation()
Specified by:
getPreviousLocation in interface IParseTreeConstructor.TreeConstructionReport

getSuccess

public AbstractParseTreeConstructor.AbstractToken getSuccess()

isSuccess

public boolean isSuccess()
Specified by:
isSuccess in interface IParseTreeConstructor.TreeConstructionReport

setPreviousLocation

public void setPreviousLocation(ITextRegion previousLocation)

setRoot

public void setRoot(org.eclipse.emf.ecore.EObject root)

setSuccess

protected void setSuccess(AbstractParseTreeConstructor.AbstractToken succes)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object