org.drools.compiler
Class DialectCompiletimeRegistry

java.lang.Object
  extended by org.drools.compiler.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 Summary
DialectCompiletimeRegistry(Package pkg)
           
 
Method Summary
 void addDialect(String name, Dialect dialect)
          Add a DialectConfiguration to the registry
 void addImport(String importEntry)
          Iterates all registered dialects, informing them of an import added to the PackageBuilder
 List addResults(List list)
          Add all registered Dialect results to the provided List.
 void addStaticImport(String staticImportEntry)
          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(String name)
          Get a DialectConfiguration for a named dialect
 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(Package pkg)
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 addResults(List list)
Add all registered Dialect results to the provided List.

Parameters:
list -
Returns:

addImport

public void addImport(String importEntry)
Iterates all registered dialects, informing them of an import added to the PackageBuilder

Parameters:
importEntry -

addStaticImport

public void addStaticImport(String staticImportEntry)
Iterates all registered dialects, informing them of a static imports added to the PackageBuilder

Parameters:
staticImportEntry -


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.