org.drools.rule.builder
Class PackageBuildContext

java.lang.Object
  extended by org.drools.rule.builder.PackageBuildContext
Direct Known Subclasses:
RuleBuildContext

public class PackageBuildContext
extends Object

A context for the current build


Constructor Summary
PackageBuildContext()
           
 
Method Summary
 PackageBuilderConfiguration getConfiguration()
           
 int getCurrentId()
          Returns current counter value for generated method names
 Map getDescrLookups()
          Returns the Map of descriptor lookups
 Dialect getDialect()
           
 Dialect getDialect(String dialectName)
           
 DialectCompiletimeRegistry getDialectRegistry()
           
 List getErrors()
          Returns the list of errors found while building the current context
 Map getInvokerLookups()
          Returns the Map of generated invoker lookups
 Map getInvokers()
          Returns the Map of generated invokers
 List getMethods()
          Returns the list of generated methods
 int getNextId()
           
 PackageBuilder getPackageBuilder()
           
 BaseDescr getParentDescr()
           
 Package getPkg()
          Returns the current package being built
 void init(PackageBuilder pkgBuilder, Package pkg, BaseDescr parentDescr, DialectCompiletimeRegistry dialectRegistry, Dialect defaultDialect, Dialectable component)
          Default constructor
 boolean isTypesafe()
           
 void setDescrLookups(Map descrLookups)
           
 void setDialect(Dialect dialect)
          Allows the change of the current dialect in the context
 void setInvokerLookups(Map invokerLookups)
           
 void setInvokers(Map invokers)
           
 void setMethods(List methods)
           
 void setParentDescr(BaseDescr descr)
           
 void setTypesafe(boolean stricttype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageBuildContext

public PackageBuildContext()
Method Detail

init

public void init(PackageBuilder pkgBuilder,
                 Package pkg,
                 BaseDescr parentDescr,
                 DialectCompiletimeRegistry dialectRegistry,
                 Dialect defaultDialect,
                 Dialectable component)
Default constructor


getParentDescr

public BaseDescr getParentDescr()

setParentDescr

public void setParentDescr(BaseDescr descr)

getDialect

public Dialect getDialect()

setDialect

public void setDialect(Dialect dialect)
Allows the change of the current dialect in the context


getDialect

public Dialect getDialect(String dialectName)

getDialectRegistry

public DialectCompiletimeRegistry getDialectRegistry()

getErrors

public List getErrors()
Returns the list of errors found while building the current context

Returns:

getPkg

public Package getPkg()
Returns the current package being built

Returns:

getDescrLookups

public Map getDescrLookups()
Returns the Map of descriptor lookups

Returns:

setDescrLookups

public void setDescrLookups(Map descrLookups)

getInvokerLookups

public Map getInvokerLookups()
Returns the Map of generated invoker lookups

Returns:

setInvokerLookups

public void setInvokerLookups(Map invokerLookups)

getInvokers

public Map getInvokers()
Returns the Map of generated invokers

Returns:

setInvokers

public void setInvokers(Map invokers)

getMethods

public List getMethods()
Returns the list of generated methods

Returns:

setMethods

public void setMethods(List methods)

getCurrentId

public int getCurrentId()
Returns current counter value for generated method names

Returns:

getNextId

public int getNextId()

getConfiguration

public PackageBuilderConfiguration getConfiguration()

getPackageBuilder

public PackageBuilder getPackageBuilder()

isTypesafe

public boolean isTypesafe()

setTypesafe

public void setTypesafe(boolean stricttype)


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