Class BlockScope

    • Constructor Detail

      • BlockScope

        public BlockScope​(freemarker.core.ast.TemplateElement block,
                          Scope enclosingScope)
    • Method Detail

      • put

        public void put​(String key,
                        TemplateModel tm)
        Description copied from interface: Scope
        Set a variable in this scope. This will typically only be used internally by the FreeMarker engine.
        Specified by:
        put in interface Scope
        Overrides:
        put in class BaseScope
      • getBlock

        public freemarker.core.ast.TemplateElement getBlock()
      • definesVariable

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