Package freemarker.core
Class IncludedTemplateNamespace
- java.lang.Object
-
- freemarker.core.AbstractScope
-
- freemarker.core.BaseScope
-
- freemarker.core.TemplateNamespace
-
- freemarker.core.IncludedTemplateNamespace
-
- All Implemented Interfaces:
Scope,TemplateHashModel,TemplateHashModelEx,TemplateModel
public class IncludedTemplateNamespace extends TemplateNamespace
This class is used for the scope of an included template. If a variable is not found,in this namespace, it falls back to the scope in the template from which this template was included.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface freemarker.template.TemplateModel
TemplateModel.InvalidExpressionModel, TemplateModel.JavaNull
-
-
Field Summary
-
Fields inherited from interface freemarker.template.TemplateModel
INVALID_EXPRESSION, JAVA_NULL, NOTHING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidput(String name, TemplateModel var)Set a variable in this scope.-
Methods inherited from class freemarker.core.TemplateNamespace
definesVariable, getTemplate
-
Methods inherited from class freemarker.core.BaseScope
clear, get, getDirectVariableNames, isEmpty, keys, remove, size, values
-
Methods inherited from class freemarker.core.AbstractScope
getEnclosingScope, getEnvironment, resolveVariable
-
-
-
-
Method Detail
-
put
public void put(String name, TemplateModel var)
Description copied from interface:ScopeSet a variable in this scope. This will typically only be used internally by the FreeMarker engine.- Specified by:
putin interfaceScope- Overrides:
putin classTemplateNamespace
-
-