Class FragmentSignatureUtils
java.lang.Object
org.thymeleaf.standard.expression.FragmentSignatureUtils
- Since:
- 2.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final charprivate static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String(package private) static FragmentSignaturestatic FragmentSignatureparseFragmentSignature(IEngineConfiguration configuration, String input) processParameters(FragmentSignature fragmentSignature, Map<String, Object> specifiedParameters, boolean parametersAreSynthetic) Processes a set of parameters that have been specified for a fragment signature.
-
Field Details
-
FRAGMENT_SIGNATURE_PARAMETERS_START
private static final char FRAGMENT_SIGNATURE_PARAMETERS_START- See Also:
-
FRAGMENT_SIGNATURE_PARAMETERS_END
private static final char FRAGMENT_SIGNATURE_PARAMETERS_END- See Also:
-
-
Constructor Details
-
FragmentSignatureUtils
private FragmentSignatureUtils()
-
-
Method Details
-
parseFragmentSignature
public static FragmentSignature parseFragmentSignature(IEngineConfiguration configuration, String input) -
internalParseFragmentSignature
-
processParameters
public static Map<String,Object> processParameters(FragmentSignature fragmentSignature, Map<String, Object> specifiedParameters, boolean parametersAreSynthetic) Processes a set of parameters that have been specified for a fragment signature.
This processing matches the specified parameters against the ones in the signature, allowing the specified ones (usually coming from a fragment selection like
th:include) to be nameless, so that their values are matched to their corresponding variable name during this parameter processing operation.The resulting processed parameters are typically applied as local variables to the nodes of a selected fragment.
- Parameters:
fragmentSignature- the signature parameters should be processed againstspecifiedParameters- the set of specified parametersparametersAreSynthetic- whether the parameter names in the specifiedParameters map are synthetic or not- Returns:
- the processed set of parameters, ready to be applied as local variables to the fragment's nodes.
-
getSyntheticParameterNameForIndex
-