Class FragmentExpression
java.lang.Object
org.thymeleaf.standard.expression.Expression
org.thymeleaf.standard.expression.SimpleExpression
org.thymeleaf.standard.expression.FragmentExpression
- All Implemented Interfaces:
Serializable,IStandardExpression
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FragmentExpressionThis constant contains theFragmentExpressionobject representing the EMPTY FRAGMENT (~{})private static final Patternprivate final IStandardExpressionprivate static final org.slf4j.Loggerprivate final AssignationSequencestatic final charprivate static final Stringprivate static final longprivate final booleanprivate static final Stringprivate final IStandardExpression(package private) static final StringFields 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
ConstructorsModifierConstructorDescriptionprivateFragmentExpression(IStandardExpression templateName, IStandardExpression fragmentSelector, AssignationSequence parameters, boolean syntheticParameters) -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutedFragmentExpression(IExpressionContext context, FragmentExpression expression) createExecutedFragmentExpressionParameters(IExpressionContext context, AssignationSequence parameters, boolean syntheticParameters, StandardExpressionExecutionContext expContext) private static AssignationSequenceprivate static FragmentExpression.ExecutedFragmentExpressiondoCreateExecutedFragmentExpression(IExpressionContext context, FragmentExpression expression, StandardExpressionExecutionContext expContext) (package private) static FragmentexecuteFragmentExpression(IExpressionContext context, FragmentExpression expression) Obtain a string representation of the expression.booleanbooleanbooleanprivate static intprivate static ExpressionparseDefaultAsLiteral(String input) static FragmentExpressionparseFragmentExpression(String input) (package private) static FragmentExpressionstatic FragmentresolveExecutedFragmentExpression(ITemplateContext context, FragmentExpression.ExecutedFragmentExpression executedFragmentExpression, boolean failIfNotExists) resolveFragments(FragmentExpression.ExecutedFragmentExpression executedFragmentExpression) static StringresolveTemplateName(FragmentExpression.ExecutedFragmentExpression executedFragmentExpression) 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:
-
EMPTY_FRAGMENT_EXPRESSION
This constant contains theFragmentExpressionobject representing the EMPTY FRAGMENT (~{}) -
TEMPLATE_NAME_CURRENT_TEMPLATE
- See Also:
-
SEPARATOR
- See Also:
-
UNNAMED_PARAMETERS_PREFIX
- See Also:
-
SELECTOR
public static final char SELECTOR- See Also:
-
FRAGMENT_PATTERN
-
templateName
-
fragmentSelector
-
parameters
-
syntheticParameters
private final boolean syntheticParameters
-
-
Constructor Details
-
FragmentExpression
public FragmentExpression(IStandardExpression templateName, IStandardExpression fragmentSelector, AssignationSequence parameters, boolean syntheticParameters) -
FragmentExpression
private FragmentExpression()
-
-
Method Details
-
getTemplateName
-
getFragmentSelector
-
hasFragmentSelector
public boolean hasFragmentSelector() -
getParameters
-
hasParameters
public boolean hasParameters() -
hasSyntheticParameters
public boolean hasSyntheticParameters() -
getStringRepresentation
Description copied from interface:IStandardExpressionObtain a string representation of the expression.
- Specified by:
getStringRepresentationin interfaceIStandardExpression- Specified by:
getStringRepresentationin classExpression- Returns:
- the String representation
-
parseFragmentExpression
-
parseFragmentExpressionContent
-
parseDefaultAsLiteral
-
indexOfLastParenthesesGroup
-
createSyntheticallyNamedParameterSequence
private static AssignationSequence createSyntheticallyNamedParameterSequence(ExpressionSequence expSeq) -
executeFragmentExpression
static Fragment executeFragmentExpression(IExpressionContext context, FragmentExpression expression) -
createExecutedFragmentExpression
public static FragmentExpression.ExecutedFragmentExpression createExecutedFragmentExpression(IExpressionContext context, FragmentExpression expression) -
doCreateExecutedFragmentExpression
private static FragmentExpression.ExecutedFragmentExpression doCreateExecutedFragmentExpression(IExpressionContext context, FragmentExpression expression, StandardExpressionExecutionContext expContext) -
createExecutedFragmentExpressionParameters
private static Map<String,Object> createExecutedFragmentExpressionParameters(IExpressionContext context, AssignationSequence parameters, boolean syntheticParameters, StandardExpressionExecutionContext expContext) -
resolveExecutedFragmentExpression
public static Fragment resolveExecutedFragmentExpression(ITemplateContext context, FragmentExpression.ExecutedFragmentExpression executedFragmentExpression, boolean failIfNotExists) -
resolveTemplateName
public static String resolveTemplateName(FragmentExpression.ExecutedFragmentExpression executedFragmentExpression) -
resolveFragments
public static Set<String> resolveFragments(FragmentExpression.ExecutedFragmentExpression executedFragmentExpression)
-