Class TextLiteralExpression
- java.lang.Object
-
- org.thymeleaf.standard.expression.Expression
-
- org.thymeleaf.standard.expression.SimpleExpression
-
- org.thymeleaf.standard.expression.TextLiteralExpression
-
- All Implemented Interfaces:
java.io.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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static charDELIMITER(package private) static charESCAPE_PREFIXprivate static org.slf4j.Loggerloggerprivate static longserialVersionUIDprivate LiteralValuevalue-
Fields inherited from class org.thymeleaf.standard.expression.SimpleExpression
EXPRESSION_END_CHAR, EXPRESSION_START_CHAR
-
Fields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR
-
-
Constructor Summary
Constructors Constructor Description TextLiteralExpression(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.ObjectexecuteTextLiteralExpression(IExpressionContext context, TextLiteralExpression expression, StandardExpressionExecutionContext expContext)java.lang.StringgetStringRepresentation()Obtain a string representation of the expression.LiteralValuegetValue()(package private) static booleanisDelimiterEscaped(java.lang.String input, int pos)(package private) static TextLiteralExpressionparseTextLiteralExpression(java.lang.String input)private static java.lang.StringunescapeLiteral(java.lang.String text)private static java.lang.StringunwrapLiteral(java.lang.String input)static java.lang.StringwrapStringIntoLiteral(java.lang.String str)-
Methods inherited from class org.thymeleaf.standard.expression.SimpleExpression
executeSimple
-
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ESCAPE_PREFIX
static final char ESCAPE_PREFIX
- See Also:
- Constant Field Values
-
DELIMITER
static final char DELIMITER
- See Also:
- Constant Field Values
-
value
private final LiteralValue value
-
-
Method Detail
-
getValue
public LiteralValue getValue()
-
unwrapLiteral
private static java.lang.String unwrapLiteral(java.lang.String input)
-
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
-
parseTextLiteralExpression
static TextLiteralExpression parseTextLiteralExpression(java.lang.String input)
-
executeTextLiteralExpression
static java.lang.Object executeTextLiteralExpression(IExpressionContext context, TextLiteralExpression expression, StandardExpressionExecutionContext expContext)
-
wrapStringIntoLiteral
public static java.lang.String wrapStringIntoLiteral(java.lang.String str)
-
isDelimiterEscaped
static boolean isDelimiterEscaped(java.lang.String input, int pos)
-
unescapeLiteral
private static java.lang.String unescapeLiteral(java.lang.String text)
-
-