public final class ExpressionParser extends Object
Modifier and Type | Field and Description |
---|---|
static Object |
ASSIGNMENT
constant result object for assignments
|
static EvaluableExpression |
FALSE
Constant expression, which is always 'false'
|
static String |
TREATEMPTYSTRINGASNULL_PARAMETER |
static EvaluableExpression |
TRUE
Constant expression, which is always 'true'
|
Modifier and Type | Method and Description |
---|---|
static String |
getExpressionParserMode()
Get the expressionparser mode as String
|
static String |
getExpressionParserMode(ExpressionQueryRequest request) |
static ExpressionParser |
getInstance()
Get the singleton instance of the expression parser
|
static boolean |
isCompatibilityMode()
Check whether compatibility mode is on for the expression parser.
|
static boolean |
isCompatibilityTestMode()
Check whether compatibility test mode is on for the expression parser.
|
static boolean |
isTreatEmptyStringAsNull()
Check whether empty strings shall be treated as null or not.
|
Expression |
parse(String expressionString)
Parse the given expression string into an Expression.
|
static void |
setTreatEmptyStringAsNull(boolean value)
Sets the isTreatEmptyStringAsNull flag
|
public static final String TREATEMPTYSTRINGASNULL_PARAMETER
public static final Object ASSIGNMENT
public static EvaluableExpression TRUE
public static EvaluableExpression FALSE
public static ExpressionParser getInstance()
public Expression parse(String expressionString) throws ParserException
expressionString
- expression stringParserException
- when the string cannot be parsed into an
Expressionpublic static void setTreatEmptyStringAsNull(boolean value)
value
- public static boolean isTreatEmptyStringAsNull()
public static boolean isCompatibilityMode()
public static boolean isCompatibilityTestMode()
public static String getExpressionParserMode()
request
- public static String getExpressionParserMode(ExpressionQueryRequest request)
Copyright © 2015 Gentics Software GmbH. All Rights Reserved.