Package net.hydromatic.morel.compile
Class Tracers.EmptyTracer
- java.lang.Object
-
- net.hydromatic.morel.compile.Tracers.EmptyTracer
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEmptyTracer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleCompileException(@Nullable CompileException e)Called with the exception thrown during validation, or null if no exception was thrown.voidonCore(int pass, Core.Decl e)Called when the expression is converted to core.booleanonException(@Nullable Throwable e)Called with the exception thrown during evaluation, or null if no exception was thrown.voidonPlan(Code code)Called when code is generated.voidonResult(Object o)Called on the result of an evaluation.booleanonTypeException(TypeResolver.TypeException e)Called with the exception thrown during type resolution.voidonWarnings(List<Throwable> warningList)Called with the list of warnings after evaluation.
-
-
-
Field Detail
-
INSTANCE
static final Tracer INSTANCE
-
-
Method Detail
-
onCore
public void onCore(int pass, Core.Decl e)Description copied from interface:TracerCalled when the expression is converted to core.
-
onPlan
public void onPlan(Code code)
Description copied from interface:TracerCalled when code is generated.
-
onResult
public void onResult(Object o)
Description copied from interface:TracerCalled on the result of an evaluation.
-
onWarnings
public void onWarnings(List<Throwable> warningList)
Description copied from interface:TracerCalled with the list of warnings after evaluation.- Specified by:
onWarningsin interfaceTracer
-
onTypeException
public boolean onTypeException(TypeResolver.TypeException e)
Description copied from interface:TracerCalled with the exception thrown during type resolution. Returns whether a handler was found.- Specified by:
onTypeExceptionin interfaceTracer
-
onException
public boolean onException(@Nullable Throwable e)
Description copied from interface:TracerCalled with the exception thrown during evaluation, or null if no exception was thrown. Returns whether a handler was found.- Specified by:
onExceptionin interfaceTracer
-
handleCompileException
public boolean handleCompileException(@Nullable CompileException e)
Description copied from interface:TracerCalled with the exception thrown during validation, or null if no exception was thrown. Returns whether a handler was found.- Specified by:
handleCompileExceptionin interfaceTracer
-
-