Package net.hydromatic.morel.compile
Interface Tracer
-
- All Known Implementing Classes:
Tracers.DelegatingTracer,Tracers.EmptyTracer
public interface TracerCalled on various events during compilation.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
onCore
void onCore(int pass, Core.Decl e)Called when the expression is converted to core.
-
onPlan
void onPlan(Code code)
Called when code is generated.
-
onResult
void onResult(Object o)
Called on the result of an evaluation.
-
onWarnings
void onWarnings(List<Throwable> warningList)
Called with the list of warnings after evaluation.
-
onException
boolean onException(@Nullable Throwable e)
Called with the exception thrown during evaluation, or null if no exception was thrown. Returns whether a handler was found.
-
onTypeException
boolean onTypeException(TypeResolver.TypeException e)
Called with the exception thrown during type resolution. Returns whether a handler was found.
-
handleCompileException
boolean handleCompileException(@Nullable CompileException e)
Called with the exception thrown during validation, or null if no exception was thrown. Returns whether a handler was found.
-
-