Package org.antlr.v4.analysis
Enum Class LeftFactoringRuleTransformer.DecisionFactorMode
java.lang.Object
java.lang.Enum<LeftFactoringRuleTransformer.DecisionFactorMode>
org.antlr.v4.analysis.LeftFactoringRuleTransformer.DecisionFactorMode
- All Implemented Interfaces:
Serializable,Comparable<LeftFactoringRuleTransformer.DecisionFactorMode>,Constable
- Enclosing class:
- LeftFactoringRuleTransformer
protected static enum LeftFactoringRuleTransformer.DecisionFactorMode
extends Enum<LeftFactoringRuleTransformer.DecisionFactorMode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlternatives are factored where possible; results are combined, and both factored and unfactored alternatives are included in the result.Factors all alternatives of the decision.Attempts to factor all alternatives of the decision.Attempts to factor all alternatives of the decision, and returns the remaining unfactored alternatives. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDecisionFactorMode(boolean includeFactoredAlts, boolean includeUnfactoredAlts) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMBINED_FACTOR
Alternatives are factored where possible; results are combined, and both factored and unfactored alternatives are included in the result. -
FULL_FACTOR
Factors all alternatives of the decision. The factoring fails if the decision contains one or more alternatives which cannot be factored. -
PARTIAL_FACTORED
Attempts to factor all alternatives of the decision. Alternatives which could not be factored are not included in the result. -
PARTIAL_UNFACTORED
Attempts to factor all alternatives of the decision, and returns the remaining unfactored alternatives. Alternatives which could be factored are not included in the result.
-
-
Field Details
-
includeFactoredAlts
private final boolean includeFactoredAlts -
includeUnfactoredAlts
private final boolean includeUnfactoredAlts
-
-
Constructor Details
-
DecisionFactorMode
private DecisionFactorMode(boolean includeFactoredAlts, boolean includeUnfactoredAlts)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
includeFactoredAlts
public boolean includeFactoredAlts() -
includeUnfactoredAlts
public boolean includeUnfactoredAlts()
-