public class ExpressionParserFactory
extends java.lang.Object
ExpressionParserFactory
class create 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.Modifier and Type | Class and Description |
---|---|
static class |
ExpressionParserFactory.ParserStyle
The various styles of parsers.
|
Modifier and Type | Method and Description |
---|---|
ExpressionParser |
create()
Creates a new expression parser in the default style.
|
ExpressionParser |
create(ExpressionParserFactory.ParserStyle style)
Creates a new expresion parser.
|
static ExpressionParserFactory |
getFactoryInstance()
Gets the singleton instance of this class.
|
static org.nfunk.jep.JEP |
getInstance()
Deprecated.
|
void |
setDefaultStyle(ExpressionParserFactory.ParserStyle style)
Sets the default style of expression parser to create.
|
public static ExpressionParserFactory getFactoryInstance()
@Deprecated public static org.nfunk.jep.JEP getInstance()
public void setDefaultStyle(ExpressionParserFactory.ParserStyle style)
style
- the style of parser to create.public ExpressionParser create()
public ExpressionParser create(ExpressionParserFactory.ParserStyle style)
style
- the style of parser to create.