Class LinkExpression
java.lang.Object
org.thymeleaf.standard.expression.Expression
org.thymeleaf.standard.expression.SimpleExpression
org.thymeleaf.standard.expression.LinkExpression
- All Implemented Interfaces:
Serializable,IStandardExpression
Link 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IStandardExpressionprivate static final Patternprivate static final org.slf4j.Loggerprivate final AssignationSequenceprivate static final charprivate static final char(package private) static final charprivate static final longFields inherited from class org.thymeleaf.standard.expression.SimpleExpression
EXPRESSION_END_CHAR, EXPRESSION_START_CHARFields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void(package private) static ObjectexecuteLinkExpression(IExpressionContext context, LinkExpression expression) getBase()Obtain a string representation of the expression.booleanprivate static ObjectnormalizeParameterValue(Object parameterValue) private static Expression(package private) static LinkExpressionparseLinkExpression(String input) resolveParameters(IExpressionContext context, LinkExpression expression, StandardExpressionExecutionContext expContext) Methods inherited from class org.thymeleaf.standard.expression.SimpleExpression
executeSimple
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
serialVersionUID
private static final long serialVersionUID- See Also:
-
SELECTOR
static final char SELECTOR- See Also:
-
PARAMS_START_CHAR
private static final char PARAMS_START_CHAR- See Also:
-
PARAMS_END_CHAR
private static final char PARAMS_END_CHAR- See Also:
-
LINK_PATTERN
-
base
-
parameters
-
-
Constructor Details
-
LinkExpression
-
-
Method Details
-
getBase
-
getParameters
-
hasParameters
public boolean hasParameters() -
getStringRepresentation
Description copied from interface:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Specified by:
getStringRepresentationin classExpression- Returns:
- the String representation
-
parseLinkExpression
-
parseBaseDefaultAsLiteral
-
executeLinkExpression
-
resolveParameters
private static Map<String,Object> resolveParameters(IExpressionContext context, LinkExpression expression, StandardExpressionExecutionContext expContext) -
addParameter
-
normalizeParameterValue
-