Package net.hydromatic.morel.compile
Interface Tracer
- All Known Implementing Classes:
Tracers.DelegatingTracer,Tracers.EmptyTracer
public interface Tracer
Called on various events during compilation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleCompileException(@Nullable CompileException e) Called with the exception thrown during validation, or null if no exception was thrown.voidCalled 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.voidCalled when code is generated.voidCalled on the result of an evaluation.booleanCalled with the exception thrown during type resolution.voidonWarnings(List<Throwable> warningList) Called with the list of warnings after evaluation.
-
Method Details
-
onCore
Called when the expression is converted to core. -
onPlan
Called when code is generated. -
onResult
Called on the result of an evaluation. -
onWarnings
Called with the list of warnings after evaluation. -
onException
Called with the exception thrown during evaluation, or null if no exception was thrown. Returns whether a handler was found. -
onTypeException
Called with the exception thrown during type resolution. Returns whether a handler was found. -
handleCompileException
Called with the exception thrown during validation, or null if no exception was thrown. Returns whether a handler was found.
-