Class TextLiteralExpression
- Object
-
- org.thymeleaf.standard.expression.Expression
-
- org.thymeleaf.standard.expression.SimpleExpression
-
- org.thymeleaf.standard.expression.TextLiteralExpression
-
- All Implemented Interfaces:
Serializable
,IStandardExpression
public final class TextLiteralExpression extends SimpleExpression
Text literal (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:
- 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 TextLiteralExpression(String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStringRepresentation()
Obtain a string representation of the expression.LiteralValue
getValue()
static String
wrapStringIntoLiteral(String str)
-
Methods inherited from class org.thymeleaf.standard.expression.Expression
execute, execute, toString
-
-
-
-
Constructor Detail
-
TextLiteralExpression
public TextLiteralExpression(String value)
-
-
Method Detail
-
getValue
public LiteralValue getValue()
-
getStringRepresentation
public String 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
-
-