Class OrExpression
- java.lang.Object
-
- org.thymeleaf.standard.expression.Expression
-
- org.thymeleaf.standard.expression.ComplexExpression
-
- org.thymeleaf.standard.expression.BinaryOperationExpression
-
- org.thymeleaf.standard.expression.OrExpression
-
- All Implemented Interfaces:
java.io.Serializable,IStandardExpression
public final class OrExpression extends BinaryOperationExpression
Logical OR complex expression (Thymeleaf Standard Expressions)
Note a class with this name existed since 1.1, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.reflect.MethodLEFT_ALLOWED_METHODprivate static boolean[]LENIENCIESprivate static org.slf4j.Loggerloggerprivate static java.lang.StringOPERATORprivate static java.lang.Class<? extends BinaryOperationExpression>[]OPERATOR_CLASSES(package private) static java.lang.String[]OPERATORSprivate static java.lang.reflect.MethodRIGHT_ALLOWED_METHODprivate static longserialVersionUID-
Fields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR
-
-
Constructor Summary
Constructors Constructor Description OrExpression(IStandardExpression left, IStandardExpression right)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static ExpressionParsingStatecomposeOrExpression(ExpressionParsingState state, int inputIndex)(package private) static java.lang.ObjectexecuteOr(IExpressionContext context, OrExpression expression, StandardExpressionExecutionContext expContext)java.lang.StringgetStringRepresentation()Obtain a string representation of the expression.(package private) static booleanisLeftAllowed(IStandardExpression left)(package private) static booleanisRightAllowed(IStandardExpression right)-
Methods inherited from class org.thymeleaf.standard.expression.BinaryOperationExpression
composeBinaryOperationExpression, getLeft, getRight, getStringRepresentation
-
Methods inherited from class org.thymeleaf.standard.expression.ComplexExpression
executeComplex
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
logger
private static final org.slf4j.Logger logger
-
OPERATOR
private static final java.lang.String OPERATOR
- See Also:
- Constant Field Values
-
OPERATORS
static final java.lang.String[] OPERATORS
-
LENIENCIES
private static final boolean[] LENIENCIES
-
OPERATOR_CLASSES
private static final java.lang.Class<? extends BinaryOperationExpression>[] OPERATOR_CLASSES
-
LEFT_ALLOWED_METHOD
private static final java.lang.reflect.Method LEFT_ALLOWED_METHOD
-
RIGHT_ALLOWED_METHOD
private static final java.lang.reflect.Method RIGHT_ALLOWED_METHOD
-
-
Constructor Detail
-
OrExpression
public OrExpression(IStandardExpression left, IStandardExpression right)
-
-
Method Detail
-
getStringRepresentation
public java.lang.String getStringRepresentation()
Description copied from interface:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Specified by:
getStringRepresentationin classExpression- Returns:
- the String representation
-
isRightAllowed
static boolean isRightAllowed(IStandardExpression right)
-
isLeftAllowed
static boolean isLeftAllowed(IStandardExpression left)
-
composeOrExpression
static ExpressionParsingState composeOrExpression(ExpressionParsingState state, int inputIndex)
-
executeOr
static java.lang.Object executeOr(IExpressionContext context, OrExpression expression, StandardExpressionExecutionContext expContext)
-
-