Package org.drools.compiler.compiler
Class DialectCompiletimeRegistry
java.lang.Object
org.drools.compiler.compiler.DialectCompiletimeRegistry
A Registry of DialectConfigurations. It is also responsible for issueing actions to all registered
dialects.
This Class api is subject to change.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDialect(String name, Dialect dialect) Add a DialectConfiguration to the registryvoidaddImport(ImportDescr importDescr) Iterates all registered dialects, informing them of an import added to the PackageBuilderaddResults(List<KnowledgeBuilderResult> list) Add all registered Dialect results to the provided List.voidaddStaticImport(ImportDescr importDescr) Iterates all registered dialects, informing them of a static imports added to the PackageBuildervoidInstruct all registered dialects to compile what ever they have attempted to build.getDialect(String name) Get a DialectConfiguration for a named dialectiterator()Return an Iterator of DialectConfigurations
-
Constructor Details
-
DialectCompiletimeRegistry
public DialectCompiletimeRegistry()
-
-
Method Details
-
addDialect
Add a DialectConfiguration to the registry- Parameters:
name-dialect-
-
getDialect
Get a DialectConfiguration for a named dialect- Parameters:
name-- Returns:
-
compileAll
public void compileAll()Instruct all registered dialects to compile what ever they have attempted to build. -
iterator
Return an Iterator of DialectConfigurations- Returns:
-
addResults
Add all registered Dialect results to the provided List.- Parameters:
list-- Returns:
-
addImport
Iterates all registered dialects, informing them of an import added to the PackageBuilder- Parameters:
importEntry-
-
addStaticImport
Iterates all registered dialects, informing them of a static imports added to the PackageBuilder- Parameters:
staticImportEntry-
-