Class VariableExpression
- Object
-
- org.thymeleaf.standard.expression.Expression
-
- org.thymeleaf.standard.expression.SimpleExpression
-
- org.thymeleaf.standard.expression.VariableExpression
-
- All Implemented Interfaces:
Serializable,IStandardExpression,IStandardVariableExpression
public final class VariableExpression extends SimpleExpression implements IStandardVariableExpression
- Since:
- 1.1
- Author:
- Daniel Fernández
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR
-
-
Constructor Summary
Constructors Constructor Description VariableExpression(String expression)VariableExpression(String expression, boolean convertToString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCachedExpression()booleangetConvertToString()StringgetExpression()StringgetStringRepresentation()Obtain a string representation of the expression.booleangetUseSelectionAsRoot()voidsetCachedExpression(Object cachedExpression)-
Methods inherited from class org.thymeleaf.standard.expression.Expression
execute, execute, toString
-
-
-
-
Method Detail
-
getExpression
public String getExpression()
- Specified by:
getExpressionin interfaceIStandardVariableExpression
-
getUseSelectionAsRoot
public boolean getUseSelectionAsRoot()
- Specified by:
getUseSelectionAsRootin interfaceIStandardVariableExpression
-
getConvertToString
public boolean getConvertToString()
- Returns:
- the result
- Since:
- 2.1.0
-
getCachedExpression
public Object getCachedExpression()
-
setCachedExpression
public void setCachedExpression(Object cachedExpression)
-
getStringRepresentation
public 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
-
-