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
public class MacroInvocationBodyContext extends BlockScope
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
Constructors Constructor Description MacroInvocationBodyContext(Environment env, freemarker.core.ast.PositionalArgsList bodyArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandefinesVariable(String name)-
Methods inherited from class freemarker.core.BlockScope
getBlock, getTemplate, put
-
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
-
-
-
-
Constructor Detail
-
MacroInvocationBodyContext
public MacroInvocationBodyContext(Environment env, freemarker.core.ast.PositionalArgsList bodyArgs) throws TemplateException
- Throws:
TemplateException
-
-
Method Detail
-
definesVariable
public boolean definesVariable(String name)
- 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.)
-
-