Class DialectCompiletimeRegistry


  • public class DialectCompiletimeRegistry
    extends Object
    A Registry of DialectConfigurations. It is also responsible for issueing actions to all registered dialects. This Class api is subject to change.
    • Constructor Detail

      • DialectCompiletimeRegistry

        public DialectCompiletimeRegistry()
    • Method Detail

      • addDialect

        public void addDialect​(String name,
                               Dialect dialect)
        Add a DialectConfiguration to the registry
        Parameters:
        name -
        dialect -
      • getDialect

        public Dialect getDialect​(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 Iterator iterator()
        Return an Iterator of DialectConfigurations
        Returns:
      • addResults

        public List<org.kie.internal.builder.KnowledgeBuilderResult> addResults​(List<org.kie.internal.builder.KnowledgeBuilderResult> list)
        Add all registered Dialect results to the provided List.
        Parameters:
        list -
        Returns:
      • addImport

        public void addImport​(ImportDescr importDescr)
        Iterates all registered dialects, informing them of an import added to the PackageBuilder
        Parameters:
        importEntry -
      • addStaticImport

        public void addStaticImport​(ImportDescr importDescr)
        Iterates all registered dialects, informing them of a static imports added to the PackageBuilder
        Parameters:
        staticImportEntry -