Class Tracers.DelegatingTracer

  • All Implemented Interfaces:
    Tracer
    Enclosing class:
    Tracers

    private static class Tracers.DelegatingTracer
    extends Object
    implements Tracer
    Tracer that delegates to an underlying tracer.
    • Field Detail

    • Constructor Detail

      • DelegatingTracer

        DelegatingTracer​(Tracer tracer)
    • Method Detail

      • onCore

        public void onCore​(int pass,
                           Core.Decl e)
        Description copied from interface: Tracer
        Called when the expression is converted to core.
        Specified by:
        onCore in interface Tracer
      • onPlan

        public void onPlan​(Code code)
        Description copied from interface: Tracer
        Called when code is generated.
        Specified by:
        onPlan in interface Tracer
      • onResult

        public void onResult​(Object o)
        Description copied from interface: Tracer
        Called on the result of an evaluation.
        Specified by:
        onResult in interface Tracer
      • onWarnings

        public void onWarnings​(List<Throwable> warningList)
        Description copied from interface: Tracer
        Called with the list of warnings after evaluation.
        Specified by:
        onWarnings in interface Tracer
      • onException

        public boolean onException​(@Nullable Throwable e)
        Description copied from interface: Tracer
        Called with the exception thrown during evaluation, or null if no exception was thrown. Returns whether a handler was found.
        Specified by:
        onException in interface Tracer
      • onTypeException

        public boolean onTypeException​(TypeResolver.TypeException e)
        Description copied from interface: Tracer
        Called with the exception thrown during type resolution. Returns whether a handler was found.
        Specified by:
        onTypeException in interface Tracer
      • handleCompileException

        public boolean handleCompileException​(@Nullable CompileException e)
        Description copied from interface: Tracer
        Called with the exception thrown during validation, or null if no exception was thrown. Returns whether a handler was found.
        Specified by:
        handleCompileException in interface Tracer