Class 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.
    • 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 registry
      void addImport​(org.drools.drl.ast.descr.ImportDescr importDescr)
      Iterates all registered dialects, informing them of an import added to the PackageBuilder
      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.
      void addStaticImport​(org.drools.drl.ast.descr.ImportDescr importDescr)
      Iterates all registered dialects, informing them of a static imports added to the PackageBuilder
      void 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 dialect
      java.util.Iterator iterator()
      Return an Iterator of DialectConfigurations
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DialectCompiletimeRegistry

        public DialectCompiletimeRegistry()
    • 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 -