Enum Class EnhancedParser.ParsingStrategy

java.lang.Object
java.lang.Enum<EnhancedParser.ParsingStrategy>
io.github.douira.glsl_transformer.basic.EnhancedParser.ParsingStrategy
All Implemented Interfaces:
Serializable, Comparable<EnhancedParser.ParsingStrategy>, Constable
Enclosing class:
EnhancedParser

public static enum EnhancedParser.ParsingStrategy extends Enum<EnhancedParser.ParsingStrategy>
Enum for the parsing strategy.
  • Enum Constant Details

    • SLL_AND_LL_ON_ERROR

      public static final EnhancedParser.ParsingStrategy SLL_AND_LL_ON_ERROR
      The default strategy that tries to use SLL first and then falls back to LL.
    • SLL_ONLY

      public static final EnhancedParser.ParsingStrategy SLL_ONLY
      The fast strategy that uses SLL only.
    • LL_ONLY

      public static final EnhancedParser.ParsingStrategy LL_ONLY
      The slow strategy that uses LL only. This is useful if it's known that there will be errors and parsing with SLL can be omitted in the first place.
  • Method Details

    • values

      public static EnhancedParser.ParsingStrategy[] 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

      public static EnhancedParser.ParsingStrategy valueOf(String name)
      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