Package noaa.coastwatch.util.expression
Enum Class ExpressionParserFactory.ParserStyle
java.lang.Object
java.lang.Enum<ExpressionParserFactory.ParserStyle>
noaa.coastwatch.util.expression.ExpressionParserFactory.ParserStyle
- All Implemented Interfaces:
Serializable
,Comparable<ExpressionParserFactory.ParserStyle>
,java.lang.constant.Constable
- Enclosing class:
- ExpressionParserFactory
public static enum ExpressionParserFactory.ParserStyle
extends Enum<ExpressionParserFactory.ParserStyle>
The various styles of parsers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe Java syntax parser, using ony Java language syntax and high speed bytecode evaluation.The pure legacy parser, using only JEP style syntax and evaluation.The emulated legacy parser, using JEP syntax translated into Java syntax with high speed Java bytecode evaluation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ExpressionParserFactory.ParserStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEGACY
The pure legacy parser, using only JEP style syntax and evaluation. Evaluation is done using JEP which has performance limitations and is not thread-safe. -
LEGACY_EMULATED
The emulated legacy parser, using JEP syntax translated into Java syntax with high speed Java bytecode evaluation. -
JAVA
The Java syntax parser, using ony Java language syntax and high speed bytecode evaluation.
-
-
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
-