Class NoTracer

  • All Implemented Interfaces:
    ITracer, ITracer, ITracer

    public class NoTracer
    extends NoTracer
    implements ITracer
    Implements a no-action execution tracer.
    Author:
    Holger Eichelberger
    • Field Detail

      • INSTANCE

        public static final ITracer INSTANCE
    • Constructor Detail

      • NoTracer

        private NoTracer()
        Prevents external instantiation.
    • Method Detail

      • visitDef

        public void visitDef​(Def def,
                             RuntimeEnvironment<?,​?> environment)
        Description copied from interface: ITracer
        Starts visiting a sub-template.
        Specified by:
        visitDef in interface ITracer
        Parameters:
        def - the sub-template
        environment - the runtime environment
      • visitedDef

        public void visitedDef​(Def def,
                               RuntimeEnvironment<?,​?> environment,
                               java.lang.Object result)
        Description copied from interface: ITracer
        Ends visiting a sub-template.
        Specified by:
        visitedDef in interface ITracer
        Parameters:
        def - the sub-template
        environment - the runtime environment
        result - the execution result
      • visitedSwitch

        public void visitedSwitch​(java.lang.Object select,
                                  int alternative,
                                  java.lang.Object value)
        Description copied from interface: ITracer
        A switch statement was visited.
        Specified by:
        visitedSwitch in interface ITracer
        Parameters:
        select - the select value
        alternative - the successive alternative (0-based index including default)
        value - the actual value of the switch statement
      • visitLoop

        public void visitLoop​(VariableDeclaration var)
        Description copied from interface: ITracer
        Visiting a loop started.
        Specified by:
        visitLoop in interface ITracer
        Parameters:
        var - the loop/iterator variable
      • visitedLoop

        public void visitedLoop​(VariableDeclaration var)
        Description copied from interface: ITracer
        Visiting a loop ended.
        Specified by:
        visitedLoop in interface ITracer
        Parameters:
        var - the loop/iterator variable
      • visitAlternative

        public void visitAlternative​(boolean takeIf)
        Description copied from interface: ITracer
        An alternative was visited.
        Specified by:
        visitAlternative in interface ITracer
        Parameters:
        takeIf - if true the if-branch is used, false else the else-branch
      • failedAt

        public void failedAt​(ITemplateLangElement element)
        Description copied from interface: ITracer
        Is called when the execution of a template language element failed.
        Specified by:
        failedAt in interface ITracer
        Parameters:
        element - the failed element
      • visitTemplate

        public void visitTemplate​(Template template)
        Description copied from interface: ITracer
        Starts visiting a template.
        Specified by:
        visitTemplate in interface ITracer
        Parameters:
        template - the template being visited
      • visitedTemplate

        public void visitedTemplate​(Template template)
        Description copied from interface: ITracer
        Ends visiting a template.
        Specified by:
        visitedTemplate in interface ITracer
        Parameters:
        template - the template
      • visitWhileBody

        public void visitWhileBody()
        Description copied from interface: ITracer
        Is called at the beginning of a while body being visited.
        Specified by:
        visitWhileBody in interface ITracer
      • visitedWhileBody

        public void visitedWhileBody()
        Description copied from interface: ITracer
        Is called at the end of a while body being visited.
        Specified by:
        visitedWhileBody in interface ITracer
      • visitFlush

        public void visitFlush()
        Description copied from interface: ITracer
        Is called before a content flush.
        Specified by:
        visitFlush in interface ITracer
      • visitedFlush

        public void visitedFlush()
        Description copied from interface: ITracer
        Is called after a content flush.
        Specified by:
        visitedFlush in interface ITracer