Class ConditionalExpression
Object
org.thymeleaf.standard.expression.Expression
org.thymeleaf.standard.expression.ComplexExpression
org.thymeleaf.standard.expression.ConditionalExpression
- All Implemented Interfaces:
Serializable
,IStandardExpression
Conditional 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
- Author:
- Daniel Fernández
- See Also:
-
Field Summary
Fields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR
-
Constructor Summary
ConstructorDescriptionConditionalExpression
(Expression conditionExpression, Expression thenExpression, Expression elseExpression) -
Method Summary
Modifier and TypeMethodDescriptionObtain a string representation of the expression.Methods inherited from class org.thymeleaf.standard.expression.Expression
execute, execute, toString
-
Constructor Details
-
ConditionalExpression
public ConditionalExpression(Expression conditionExpression, Expression thenExpression, Expression elseExpression)
-
-
Method Details
-
getConditionExpression
-
getThenExpression
-
getElseExpression
-
getStringRepresentation
Description copied from interface:IStandardExpression
Obtain a string representation of the expression.
- Specified by:
getStringRepresentation
in interfaceIStandardExpression
- Specified by:
getStringRepresentation
in classExpression
- Returns:
- the String representation
-