Class Fragment
- Object
-
- org.thymeleaf.standard.expression.Fragment
-
public final class Fragment extends Object
Class that models the result of a
FragmentExpression
, i.e. the result of a fragment expression in the form of~{template :: fragment? (parameters)?}
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static Fragment
EMPTY_FRAGMENT
-
Constructor Summary
Constructors Constructor Description Fragment(TemplateModel templateModel, Map<String,Object> parameters, boolean syntheticParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getParameters()
TemplateModel
getTemplateModel()
boolean
hasSyntheticParameters()
String
toString()
void
write(Writer writer)
-
-
-
Field Detail
-
EMPTY_FRAGMENT
public static final Fragment EMPTY_FRAGMENT
-
-
Constructor Detail
-
Fragment
public Fragment(TemplateModel templateModel, Map<String,Object> parameters, boolean syntheticParameters)
-
-
Method Detail
-
getTemplateModel
public TemplateModel getTemplateModel()
-
hasSyntheticParameters
public boolean hasSyntheticParameters()
-
write
public void write(Writer writer) throws IOException
- Throws:
IOException
-
-