public final class ExpressionParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
ASSIGNMENT
constant result object for assignments
|
static EvaluableExpression |
FALSE
Constant expression, which is always 'false'
|
static java.lang.String |
TREATEMPTYSTRINGASNULL_PARAMETER |
static EvaluableExpression |
TRUE
Constant expression, which is always 'true'
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getExpressionParserMode()
Get the expressionparser mode as String
|
static java.lang.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(java.lang.String expressionString)
Parse the given expression string into an Expression.
|
static void |
setTreatEmptyStringAsNull(boolean value)
Sets the isTreatEmptyStringAsNull flag
|
public static final java.lang.String TREATEMPTYSTRINGASNULL_PARAMETER
public static final java.lang.Object ASSIGNMENT
public static EvaluableExpression TRUE
public static EvaluableExpression FALSE
public static ExpressionParser getInstance()
public Expression parse(java.lang.String expressionString) throws ParserException
expressionString
- expression stringParserException
- when the string cannot be parsed into an
Expressionpublic static void setTreatEmptyStringAsNull(boolean value)
value
- true to treat empty strings as nullpublic static boolean isTreatEmptyStringAsNull()
public static boolean isCompatibilityMode()
public static boolean isCompatibilityTestMode()
public static java.lang.String getExpressionParserMode()
public static java.lang.String getExpressionParserMode(ExpressionQueryRequest request)
Copyright © 2020 Gentics Software. All Rights Reserved.