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
Enum for the parsing strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe slow strategy that uses LL only.The default strategy that tries to use SLL first and then falls back to LL.The fast strategy that uses SLL only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static EnhancedParser.ParsingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLL_AND_LL_ON_ERROR
The default strategy that tries to use SLL first and then falls back to LL. -
SLL_ONLY
The fast strategy that uses SLL only. -
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
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
-