org.eclipse.xtext.parsetree.reconstr.impl
Class TreeConstructionReportImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
TreeConstructionReportImpl
public TreeConstructionReportImpl()
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