Package org.antlr.v4.runtime.atn
Class ConflictInfo
java.lang.Object
org.antlr.v4.runtime.atn.ConflictInfo
This class stores information about a configuration conflict.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
conflictedAlts
-
exact
private final boolean exact
-
-
Constructor Details
-
ConflictInfo
-
-
Method Details
-
getConflictedAlts
Gets the set of conflicting alternatives for the configuration set. -
isExact
public final boolean isExact()Gets whether or not the configuration conflict is an exact conflict. An exact conflict occurs when the prediction algorithm determines that the represented alternatives for a particular configuration set cannot be further reduced by consuming additional input. After reaching an exact conflict during an SLL prediction, only switch to full-context prediction could reduce the set of viable alternatives. In LL prediction, an exact conflict indicates a true ambiguity in the input.For the
PredictionMode.LL_EXACT_AMBIG_DETECTIONprediction mode, accept states are conflicting but not exact are treated as non-accept states. -
equals
-
hashCode
public int hashCode()
-