Package noaa.coastwatch.util.expression
Class ExpressionParserFactory
java.lang.Object
noaa.coastwatch.util.expression.ExpressionParserFactory
The
ExpressionParserFactory
class creates standard
instances of a ExpressionParser
that follow either the legacy
expression syntax or Java expression syntax. See the cwmath
documentation for details on the
legacy versus Java expression language features.- Since:
- 3.2.1
- Author:
- Peter Hollemans
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The various styles of parsers. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a new expression parser in the default style.Creates a new expresion parser.static ExpressionParserFactory
Gets the singleton instance of this class.static org.nfunk.jep.JEP
Deprecated.void
Sets the default style of expression parser to create.
-
Method Details
-
getFactoryInstance
Gets the singleton instance of this class. -
getInstance
Deprecated. -
setDefaultStyle
Sets the default style of expression parser to create.- Parameters:
style
- the style of parser to create.
-
create
Creates a new expression parser in the default style. -
create
Creates a new expresion parser.- Parameters:
style
- the style of parser to create.- Returns:
- the parser configured with the specified style, or null if no appropriate parser could be created.
-