public class TreeConstState extends AbstractNFAState<TreeConstState,TreeConstTransition>
AbstractNFAState.IsInitializedMarker
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<TreeConstState,java.lang.Integer> |
distances |
protected java.util.List<TreeConstTransition> |
enabledOutgoing |
protected java.util.List<TreeConstTransition> |
enabledOutgoingAfterReturn |
protected java.util.Map<TreeConstState,java.lang.Integer> |
endDistances |
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status |
status |
protected java.util.Set<TypeRef> |
types |
protected boolean |
typesDirty |
allIncoming, builder, element, endState, outgoing, outgoingRuleCalls
Constructor and Description |
---|
TreeConstState(AbstractElement element,
IGrammarNFAProvider.NFABuilder<TreeConstState,TreeConstTransition> builder) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateDistances(TreeConstState root,
int dist) |
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status |
checkForAmbigiousPaths(java.util.Set<TreeConstState> visited) |
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status |
checkForDetoursAndLoops(java.util.Set<TreeConstState> visited) |
protected void |
consume(java.util.Map<TreeConstState,java.lang.Integer> dist) |
protected void |
discardMisleadingDistances(java.util.Set<TreeConstState> visited) |
java.util.List<TreeConstTransition> |
getEnabledOutgoing() |
java.util.List<TreeConstTransition> |
getEnabledOutgoingAfterReturn() |
protected java.util.Map<TreeConstState,java.lang.Integer> |
getEndDistances() |
org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status |
getStatus() |
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status |
getStatusInternal() |
java.util.Set<TypeRef> |
getTypes() |
java.util.Collection<TypeRef> |
getTypesToCheck() |
protected void |
initStatus() |
protected void |
initTypes(java.util.Map<TreeConstState,java.util.List<TreeConstState>> map,
java.util.Set<TreeConstState> endStates) |
protected boolean |
isConsumingElement() |
boolean |
isDisabled() |
protected boolean |
isTransitionEnabledTo(java.util.Map<TreeConstState,java.lang.Integer> dist) |
protected void |
populateTypes(java.util.Map<TreeConstState,java.util.List<TreeConstState>> map) |
protected java.util.List<TypeRef> |
sortTypes(java.util.Collection<TypeRef> types) |
java.lang.String |
toString() |
addOutgoing, collectAllOutgoingTransitions, collectOutgoing, collectOutgoingByContainer, collectReferencesToThis, filter, getAllIncoming, getAllOutgoing, getBuilder, getGrammarElement, getIncoming, getIncommingWithoutRuleCalls, getOutgoing, getOutgoingAfterReturn, hasOutgoingRuleCall, isEndState, isStartState, removeDuplicates
protected java.util.Map<TreeConstState,java.lang.Integer> distances
protected java.util.List<TreeConstTransition> enabledOutgoing
protected java.util.List<TreeConstTransition> enabledOutgoingAfterReturn
protected java.util.Map<TreeConstState,java.lang.Integer> endDistances
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status status
protected java.util.Set<TypeRef> types
protected boolean typesDirty
public TreeConstState(AbstractElement element, IGrammarNFAProvider.NFABuilder<TreeConstState,TreeConstTransition> builder)
protected void calculateDistances(TreeConstState root, int dist)
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status checkForAmbigiousPaths(java.util.Set<TreeConstState> visited)
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status checkForDetoursAndLoops(java.util.Set<TreeConstState> visited)
protected void consume(java.util.Map<TreeConstState,java.lang.Integer> dist)
protected void discardMisleadingDistances(java.util.Set<TreeConstState> visited)
public java.util.List<TreeConstTransition> getEnabledOutgoing()
public java.util.List<TreeConstTransition> getEnabledOutgoingAfterReturn()
protected java.util.Map<TreeConstState,java.lang.Integer> getEndDistances()
protected org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status getStatusInternal()
public org.eclipse.xtext.parsetree.reconstr.impl.TreeConstState.Status getStatus()
public java.util.Set<TypeRef> getTypes()
public java.util.Collection<TypeRef> getTypesToCheck()
protected void initStatus()
protected void initTypes(java.util.Map<TreeConstState,java.util.List<TreeConstState>> map, java.util.Set<TreeConstState> endStates)
protected boolean isConsumingElement()
public boolean isDisabled()
protected boolean isTransitionEnabledTo(java.util.Map<TreeConstState,java.lang.Integer> dist)
protected void populateTypes(java.util.Map<TreeConstState,java.util.List<TreeConstState>> map)
public java.lang.String toString()
toString
in class AbstractNFAState<TreeConstState,TreeConstTransition>