Package net.hydromatic.morel.util
Class Tracers
- java.lang.Object
-
- net.hydromatic.morel.util.Tracers
-
public class Tracers extends Object
Implementations ofUnifier.Tracer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTracers.NullTracerImplementation ofUnifier.Tracerthat does nothing.private static classTracers.PrintTracerImplementation ofUnifier.Tracerthat writes to a givenPrintWriter.
-
Field Summary
Fields Modifier and Type Field Description private static Tracers.NullTracerNULL_TRACER
-
Constructor Summary
Constructors Modifier Constructor Description privateTracers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Unifier.TracernullTracer()Returns a tracer that does nothing.static Unifier.TracerprintTracer(OutputStream stream)Returns a tracer that writes debugging messages to a stream.static Unifier.TracerprintTracer(PrintWriter w)Returns a tracer that writes debugging messages to a writer.
-
-
-
Field Detail
-
NULL_TRACER
private static final Tracers.NullTracer NULL_TRACER
-
-
Method Detail
-
nullTracer
public static Unifier.Tracer nullTracer()
Returns a tracer that does nothing.
-
printTracer
public static Unifier.Tracer printTracer(PrintWriter w)
Returns a tracer that writes debugging messages to a writer.
-
printTracer
public static Unifier.Tracer printTracer(OutputStream stream)
Returns a tracer that writes debugging messages to a stream.
-
-