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:
inConfiguration- The compiler configurationinErrorConsumer- An error consumerinLoader- The package loaderinBinders- A source of bindersinParsers- A source of parsersinSources- A source of expression sourcesinTypers- A source of type checkers
-
-
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
-