Package org.drools.compiler.compiler
Class DialectCompiletimeRegistry
- java.lang.Object
-
- org.drools.compiler.compiler.DialectCompiletimeRegistry
-
public class DialectCompiletimeRegistry extends java.lang.Object
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 Constructor Description DialectCompiletimeRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDialect(java.lang.String name, Dialect dialect)
Add a DialectConfiguration to the registryvoid
addImport(org.drools.drl.ast.descr.ImportDescr importDescr)
Iterates all registered dialects, informing them of an import added to the PackageBuilderjava.util.List<org.kie.internal.builder.KnowledgeBuilderResult>
addResults(java.util.List<org.kie.internal.builder.KnowledgeBuilderResult> list)
Add all registered Dialect results to the provided List.void
addStaticImport(org.drools.drl.ast.descr.ImportDescr importDescr)
Iterates all registered dialects, informing them of a static imports added to the PackageBuildervoid
compileAll()
Instruct all registered dialects to compile what ever they have attempted to build.Dialect
getDialect(java.lang.String name)
Get a DialectConfiguration for a named dialectjava.util.Iterator
iterator()
Return an Iterator of DialectConfigurations
-
-
-
Method Detail
-
addDialect
public void addDialect(java.lang.String name, Dialect dialect)
Add a DialectConfiguration to the registry- Parameters:
name
-dialect
-
-
getDialect
public Dialect getDialect(java.lang.String name)
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
public java.util.Iterator iterator()
Return an Iterator of DialectConfigurations- Returns:
-
addResults
public java.util.List<org.kie.internal.builder.KnowledgeBuilderResult> addResults(java.util.List<org.kie.internal.builder.KnowledgeBuilderResult> list)
Add all registered Dialect results to the provided List.- Parameters:
list
-- Returns:
-
addImport
public void addImport(org.drools.drl.ast.descr.ImportDescr importDescr)
Iterates all registered dialects, informing them of an import added to the PackageBuilder- Parameters:
importEntry
-
-
addStaticImport
public void addStaticImport(org.drools.drl.ast.descr.ImportDescr importDescr)
Iterates all registered dialects, informing them of a static imports added to the PackageBuilder- Parameters:
staticImportEntry
-
-
-