Package freemarker.template
Interface TemplateBooleanModel
- All Superinterfaces:
TemplateModel
- All Known Implementing Classes:
BooleanModel,JythonHashModel,JythonModel,JythonNumberModel,JythonSequenceModel,RhinoFunctionModel,RhinoScriptableModel
"boolean" template language data type; same as in Java; either
true or false.
Objects of this type should be immutable, that is, calling getAsBoolean() should always return the same
value as for the first time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic TemplateBooleanModelA singleton object to represent boolean falsestatic TemplateBooleanModelA singleton object to represent boolean trueFields inherited from interface freemarker.template.TemplateModel
NOTHING -
Method Summary
-
Field Details
-
FALSE
A singleton object to represent boolean false -
TRUE
A singleton object to represent boolean true
-
-
Method Details
-
getAsBoolean
- Returns:
- whether to interpret this object as true or false in a boolean context
- Throws:
TemplateModelException
-