Uses of Class
net.hydromatic.morel.compile.CompileException
Packages that use CompileException
Package
Description
Validates programs (represented as
AstNode),
deduces their type, and compiles them into code that can be evaluated.-
Uses of CompileException in net.hydromatic.morel.compile
Subclasses of CompileException in net.hydromatic.morel.compileModifier and TypeClassDescriptionstatic classError while deducing type.Fields in net.hydromatic.morel.compile with type parameters of type CompileExceptionModifier and TypeFieldDescriptionprivate final Consumer<CompileException> TypeResolver.warningConsumerMethods in net.hydromatic.morel.compile with parameters of type CompileExceptionModifier and TypeMethodDescriptionbooleanTracer.handleCompileException(@Nullable CompileException e) Called with the exception thrown during validation, or null if no exception was thrown.booleanTracers.DelegatingTracer.handleCompileException(@Nullable CompileException e) booleanTracers.EmptyTracer.handleCompileException(@Nullable CompileException e) Method parameters in net.hydromatic.morel.compile with type arguments of type CompileExceptionModifier and TypeMethodDescriptionprivate static voidCompiles.checkPatternCoverage(TypeSystem typeSystem, Core.Case kase, Consumer<CompileException> errorConsumer, Consumer<CompileException> warningConsumer) private static voidCompiles.checkPatternCoverage(TypeSystem typeSystem, Core.Decl decl, Consumer<CompileException> warningConsumer) Checks for exhaustive and redundant patterns, and throws if there are errors/warnings.static TypeResolver.ResolvedTypeResolver.deduceType(Environment env, Ast.Decl decl, TypeSystem typeSystem, Consumer<CompileException> warningConsumer) Deduces the datatype of a declaration.private static CompiledStatementCompiles.prepareDecl(TypeSystem typeSystem, Session session, Environment env, @Nullable Calcite calcite, Ast.Decl decl, Consumer<CompileException> warningConsumer, Tracer tracer) Validates and compiles a declaration, and compiles it to code that can be evaluated by the interpreter.static CompiledStatementCompiles.prepareStatement(TypeSystem typeSystem, Session session, Environment env, AstNode statement, @Nullable Calcite calcite, Consumer<CompileException> warningConsumer, Tracer tracer) Validates and compiles a statement (expression or declaration), and compiles it to code that can be evaluated by the interpreter.static TypeResolver.ResolvedCompiles.validateExpression(AstNode statement, Map<Prop, Object> propMap, Map<String, ForeignValue> valueMap, Consumer<CompileException> warningConsumer) Validates an expression or declaration, deducing its type and perhaps rewriting the expression to a form that can more easily be compiled.static TracerTracers.withOnCompileException(Tracer tracer, Consumer<CompileException> consumer) Constructor parameters in net.hydromatic.morel.compile with type arguments of type CompileExceptionModifierConstructorDescriptionprivateTypeResolver(TypeSystem typeSystem, Consumer<CompileException> warningConsumer)