Class ExpressionParserFactory

java.lang.Object
noaa.coastwatch.util.expression.ExpressionParserFactory

public class ExpressionParserFactory extends Object
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
  • Method Details

    • getFactoryInstance

      public static ExpressionParserFactory getFactoryInstance()
      Gets the singleton instance of this class.
    • getInstance

      @Deprecated public static org.nfunk.jep.JEP getInstance()
      Deprecated.
    • setDefaultStyle

      public void setDefaultStyle(ExpressionParserFactory.ParserStyle style)
      Sets the default style of expression parser to create.
      Parameters:
      style - the style of parser to create.
    • create

      public ExpressionParser 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.