Package org.drools.model.codegen.tool
Class ExplicitCanonicalModelCompiler<T extends PackageSources>
java.lang.Object
org.drools.model.codegen.tool.ExplicitCanonicalModelCompiler<T>
- Type Parameters:
T- a subclass of PackageSources to retrieve the generated results
An alternative compilation flow that generates code starting
from a collection of
CompositePackageDescrs,
skipping the KnowledgeBuilder entirely.
It explicitly invokes the necessary CompilationPhases
one after the other and collects the error.-
Constructor Summary
ConstructorsConstructorDescriptionExplicitCanonicalModelCompiler(Collection<CompositePackageDescr> packages, PackageRegistryManager pkgRegistryManager, PackageModelManager packageModelManager, CanonicalModelBuildContext buildContext, KnowledgeBuilderConfigurationImpl configuration, BuildResultCollector results, TypeDeclarationContext typeDeclarationContext, GlobalVariableContext globalVariableContext, PackageSourceManager<T> packageSourceManager, Function<PackageModel, T> sourceDumpFunction) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PackageSources>
ExplicitCanonicalModelCompiler<T>of(Collection<CompositePackageDescr> packages, KnowledgeBuilderConfigurationImpl configuration, Function<PackageModel, T> sourceDumpFunction) voidprocess()setContext(DroolsModelBuildContext context)
-
Constructor Details
-
ExplicitCanonicalModelCompiler
public ExplicitCanonicalModelCompiler(Collection<CompositePackageDescr> packages, PackageRegistryManager pkgRegistryManager, PackageModelManager packageModelManager, CanonicalModelBuildContext buildContext, KnowledgeBuilderConfigurationImpl configuration, BuildResultCollector results, TypeDeclarationContext typeDeclarationContext, GlobalVariableContext globalVariableContext, PackageSourceManager<T> packageSourceManager, Function<PackageModel, T> sourceDumpFunction)
-
-
Method Details
-
of
public static <T extends PackageSources> ExplicitCanonicalModelCompiler<T> of(Collection<CompositePackageDescr> packages, KnowledgeBuilderConfigurationImpl configuration, Function<PackageModel, T> sourceDumpFunction) -
process
public void process() -
getBuildResults
-
getPackageSources
-
getPackageModels
-
setContext
-