Package freemarker.core
Class MacroInvocationBodyContext
java.lang.Object
freemarker.core.AbstractScope
freemarker.core.BaseScope
freemarker.core.BlockScope
freemarker.core.MacroInvocationBodyContext
- All Implemented Interfaces:
Scope,TemplateHashModel,TemplateHashModelEx,TemplateModel
Represents the context or scope when a macro executes
the body of a macro invocation via [#nested]
-
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 -
Constructor Summary
ConstructorsConstructorDescriptionMacroInvocationBodyContext(Environment env, freemarker.core.ast.PositionalArgsList bodyArgs) -
Method Summary
Methods inherited from class freemarker.core.BlockScope
getBlock, getTemplate, putMethods inherited from class freemarker.core.BaseScope
clear, get, getDirectVariableNames, isEmpty, keys, remove, size, valuesMethods inherited from class freemarker.core.AbstractScope
getEnclosingScope, getEnvironment, resolveVariable
-
Constructor Details
-
MacroInvocationBodyContext
public MacroInvocationBodyContext(Environment env, freemarker.core.ast.PositionalArgsList bodyArgs) throws TemplateException - Throws:
TemplateException
-
-
Method Details
-
definesVariable
- Specified by:
definesVariablein interfaceScope- Overrides:
definesVariablein classBlockScope- Returns:
- whether the variable is defined in this specific scope. (It could be defined in a fallback scope and this method will return false.)
-