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>
  • Enum Constant Details

    • COMBINED_FACTOR

      public static final LeftFactoringRuleTransformer.DecisionFactorMode COMBINED_FACTOR
      Alternatives are factored where possible; results are combined, and both factored and unfactored alternatives are included in the result.
    • FULL_FACTOR

      public static final LeftFactoringRuleTransformer.DecisionFactorMode 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

      public static final LeftFactoringRuleTransformer.DecisionFactorMode PARTIAL_FACTORED
      Attempts to factor all alternatives of the decision. Alternatives which could not be factored are not included in the result.
    • PARTIAL_UNFACTORED

      public static final LeftFactoringRuleTransformer.DecisionFactorMode 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 name
      NullPointerException - if the argument is null
    • includeFactoredAlts

      public boolean includeFactoredAlts()
    • includeUnfactoredAlts

      public boolean includeUnfactoredAlts()