Class NoTracer

    • Constructor Detail

      • NoTracer

        protected NoTracer()
        Prevents external instantiation.
    • Method Detail

      • setTraceFilter

        public void setTraceFilter​(ITraceFilter filter)
        Description copied from interface: ITracer
        Sets a trace filter on this tracer.
        Specified by:
        setTraceFilter in interface ITracer
        Parameters:
        filter - the new trace filter, ignored if null
      • getTraceFilter

        public ITraceFilter getTraceFilter()
        Description copied from interface: ITracer
        Returns the active trace filter.
        Specified by:
        getTraceFilter in interface ITracer
        Returns:
        the filter, may be null if the tracer does not support filters
      • trace

        public void trace​(java.lang.String text)
        Description copied from interface: ITracer
        Emits a trace string.
        Specified by:
        trace in interface ITracer
        Parameters:
        text - the text to be emitted
      • valueDefined

        public void valueDefined​(VariableDeclaration var,
                                 FieldDescriptor field,
                                 java.lang.Object value)
        Description copied from interface: ITracer
        Is called when a value of a variable is defined.
        Specified by:
        valueDefined in interface ITracer
        Parameters:
        var - the modified variable
        field - the field in var, may be null
        value - the actual value
      • traceExecutionException

        public void traceExecutionException​(VilException exception)
        Description copied from interface: ITracer
        Traces a top-level execution exception, i.e., execution a VIL script or template failed.
        Specified by:
        traceExecutionException in interface ITracer
        Parameters:
        exception - the exception
      • enable

        public void enable​(boolean enable)
        Description copied from interface: ITracer
        Enables or disables the tracer. By default, a tracer is enabled.
        Specified by:
        enable in interface ITracer
        Parameters:
        enable - enable or disable
      • traceWarning

        public void traceWarning​(java.lang.String text)
        Description copied from interface: ITracer
        Emits a warning trace string.
        Specified by:
        traceWarning in interface ITracer
        Parameters:
        text - the text to be emitted
      • traceError

        public void traceError​(java.lang.String text)
        Description copied from interface: ITracer
        Emits an error trace string.
        Specified by:
        traceError in interface ITracer
        Parameters:
        text - the text to be emitted