|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.api.lib.expressionparser.ExpressionParser
public final class ExpressionParser
This is the expression parser (singleton). The expression parser parses strings into reusable expressions.
Field Summary | |
---|---|
static java.lang.Object |
ASSIGNMENT
constant result object for assignments |
static EvaluableExpression |
FALSE
Constant expression, which is always 'false' |
static boolean |
treatEmptyStringAsNull
Default value for the property "treatEmptyStringAsNull" when no portal configuration found. |
static EvaluableExpression |
TRUE
Constant expression, which is always 'true' |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object ASSIGNMENT
public static boolean treatEmptyStringAsNull
public static EvaluableExpression TRUE
public static EvaluableExpression FALSE
Method Detail |
---|
public static ExpressionParser getInstance()
public Expression parse(java.lang.String expressionString) throws ParserException
expressionString
- expression string
ParserException
- when the string cannot be parsed into an
Expressionpublic static boolean isTreatEmptyStringAsNull()
public static boolean isCompatibilityMode()
public static boolean isCompatibilityTestMode()
public static java.lang.String getExpressionParserMode()
request
-
public static java.lang.String getExpressionParserMode(ExpressionQueryRequest request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |