Class CBSchemaCompiler
java.lang.Object
com.io7m.cedarbridge.schema.compiler.internal.CBSchemaCompiler
- All Implemented Interfaces:
CBSchemaCompilerType
A schema compiler.
-
Constructor Summary
ConstructorsConstructorDescriptionCBSchemaCompiler(Consumer<CBError> inErrorConsumer, CBExpressionSourceFactoryType inSources, CBParserFactoryType inParsers, CBBinderFactoryType inBinders, CBTypeCheckerFactoryType inTypers, CBLoaderType inLoader, CBSchemaCompilerConfiguration inConfiguration) A schema compiler. -
Method Summary
-
Constructor Details
-
CBSchemaCompiler
public CBSchemaCompiler(Consumer<CBError> inErrorConsumer, CBExpressionSourceFactoryType inSources, CBParserFactoryType inParsers, CBBinderFactoryType inBinders, CBTypeCheckerFactoryType inTypers, CBLoaderType inLoader, CBSchemaCompilerConfiguration inConfiguration) A schema compiler.- Parameters:
inErrorConsumer- An error consumerinSources- A source of expression sourcesinParsers- A source of parsersinBinders- A source of bindersinTypers- A source of type checkersinLoader- The package loaderinConfiguration- The compiler configuration
-
-
Method Details
-
loader
- Specified by:
loaderin interfaceCBSchemaCompilerType- Returns:
- The package loader
-
execute
Description copied from interface:CBSchemaCompilerTypeExecute the compiler.- Specified by:
executein interfaceCBSchemaCompilerType- Returns:
- The result of compilation
- Throws:
CBSchemaCompilerException- On compilation errors
-