Class FragmentExpression
- Object
-
- org.thymeleaf.standard.expression.Expression
-
- org.thymeleaf.standard.expression.SimpleExpression
-
- org.thymeleaf.standard.expression.FragmentExpression
-
- All Implemented Interfaces:
Serializable
,IStandardExpression
public final class FragmentExpression extends SimpleExpression
- Since:
- 3.0.0
- Author:
- Daniel Fernández
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FragmentExpression.ExecutedFragmentExpression
-
Field Summary
Fields Modifier and Type Field Description static FragmentExpression
EMPTY_FRAGMENT_EXPRESSION
This constant contains theFragmentExpression
object representing the EMPTY FRAGMENT (~{}
)static char
SELECTOR
-
Fields inherited from class org.thymeleaf.standard.expression.Expression
NESTING_END_CHAR, NESTING_START_CHAR, PARSING_PLACEHOLDER_CHAR
-
-
Constructor Summary
Constructors Constructor Description FragmentExpression(IStandardExpression templateName, IStandardExpression fragmentSelector, AssignationSequence parameters, boolean syntheticParameters)
-
Method Summary
-
Methods inherited from class org.thymeleaf.standard.expression.Expression
execute, execute, toString
-
-
-
-
Field Detail
-
EMPTY_FRAGMENT_EXPRESSION
public static final FragmentExpression EMPTY_FRAGMENT_EXPRESSION
This constant contains theFragmentExpression
object representing the EMPTY FRAGMENT (~{}
)
-
SELECTOR
public static final char SELECTOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FragmentExpression
public FragmentExpression(IStandardExpression templateName, IStandardExpression fragmentSelector, AssignationSequence parameters, boolean syntheticParameters)
-
-
Method Detail
-
getTemplateName
public IStandardExpression getTemplateName()
-
getFragmentSelector
public IStandardExpression getFragmentSelector()
-
hasFragmentSelector
public boolean hasFragmentSelector()
-
getParameters
public AssignationSequence getParameters()
-
hasParameters
public boolean hasParameters()
-
hasSyntheticParameters
public boolean hasSyntheticParameters()
-
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
-
parseFragmentExpression
public static FragmentExpression parseFragmentExpression(String input)
-
createExecutedFragmentExpression
@Deprecated public static FragmentExpression.ExecutedFragmentExpression createExecutedFragmentExpression(IExpressionContext context, FragmentExpression expression, StandardExpressionExecutionContext expContext)
Deprecated.Deprecated in 3.0.9. Use the version without "expContext" itself, as all FragmentExpressions should be executed in RESTRICTED mode (no request parameter use allowed).Create the executed fragment expression.
- Parameters:
context
- the contextexpression
- the expressonexpContext
- the expression context- Returns:
- the executed fragment expression
-
createExecutedFragmentExpression
public static FragmentExpression.ExecutedFragmentExpression createExecutedFragmentExpression(IExpressionContext context, FragmentExpression expression)
-
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)
-
-