Interface ITracer

    • Method Detail

      • visitTemplate

        void visitTemplate​(Template template)
        Starts visiting a template.
        Parameters:
        template - the template being visited
      • visitedTemplate

        void visitedTemplate​(Template template)
        Ends visiting a template.
        Parameters:
        template - the template
      • visitDef

        void visitDef​(Def def,
                      RuntimeEnvironment<?,​?> environment)
        Starts visiting a sub-template.
        Parameters:
        def - the sub-template
        environment - the runtime environment
      • visitedDef

        void visitedDef​(Def def,
                        RuntimeEnvironment<?,​?> environment,
                        java.lang.Object result)
        Ends visiting a sub-template.
        Parameters:
        def - the sub-template
        environment - the runtime environment
        result - the execution result
      • visitedSwitch

        void visitedSwitch​(java.lang.Object select,
                           int alternative,
                           java.lang.Object value)
        A switch statement was visited.
        Parameters:
        select - the select value
        alternative - the successive alternative (0-based index including default)
        value - the actual value of the switch statement
      • visitLoop

        void visitLoop​(VariableDeclaration var)
        Visiting a loop started.
        Parameters:
        var - the loop/iterator variable
      • visitedLoop

        void visitedLoop​(VariableDeclaration var)
        Visiting a loop ended.
        Parameters:
        var - the loop/iterator variable
      • visitAlternative

        void visitAlternative​(boolean takeIf)
        An alternative was visited.
        Parameters:
        takeIf - if true the if-branch is used, false else the else-branch
      • failedAt

        void failedAt​(ITemplateLangElement element)
        Is called when the execution of a template language element failed.
        Parameters:
        element - the failed element
      • visitWhileBody

        void visitWhileBody()
        Is called at the beginning of a while body being visited.
      • visitedWhileBody

        void visitedWhileBody()
        Is called at the end of a while body being visited.
      • visitFlush

        void visitFlush()
        Is called before a content flush.
      • visitedFlush

        void visitedFlush()
        Is called after a content flush.