Interface TemplateContext

  • All Known Implementing Classes:
    DefaultTemplateContext

    public interface TemplateContext
    Holds input and accompanying parameters (including mapping label) as we walk through template. Analogous to stack frames that keep method parameters; hierarchical with implicit access to outer scope (getVariable(String) looks up variable in super contexts) and explicit access to history of input nodes (getInputHistory()) TemplateContext represents the lowest-level context of generation, with Generator at the top, supervising model transformation, and TemplateExecutionEnvironment in the middle, responsible for thread/root generation and providing interaction with generation facilities.