Class 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]
  • Constructor Details

  • Method Details

    • definesVariable

      public boolean definesVariable(String name)
      Specified by:
      definesVariable in interface Scope
      Overrides:
      definesVariable in class BlockScope
      Returns:
      whether the variable is defined in this specific scope. (It could be defined in a fallback scope and this method will return false.)