Interface ITracer

    • Method Detail

      • trace

        void trace​(java.lang.String text)
        Emits a trace string.
        Parameters:
        text - the text to be emitted
      • traceWarning

        void traceWarning​(java.lang.String text)
        Emits a warning trace string.
        Parameters:
        text - the text to be emitted
      • traceError

        void traceError​(java.lang.String text)
        Emits an error trace string.
        Parameters:
        text - the text to be emitted
      • valueDefined

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

        void traceExecutionException​(VilException exception)
        Traces a top-level execution exception, i.e., execution a VIL script or template failed.
        Parameters:
        exception - the exception
      • enable

        void enable​(boolean enable)
        Enables or disables the tracer. By default, a tracer is enabled.
        Parameters:
        enable - enable or disable
      • setTraceFilter

        void setTraceFilter​(ITraceFilter filter)
        Sets a trace filter on this tracer.
        Parameters:
        filter - the new trace filter, ignored if null
      • getTraceFilter

        ITraceFilter getTraceFilter()
        Returns the active trace filter.
        Returns:
        the filter, may be null if the tracer does not support filters