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
 void addError(DroolsError error)
           
 void addMethod(String method)
           
 void addWarning(DroolsWarning warning)
           
 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<DroolsError> getErrors()
          Returns the list of errors found while building the current context
 Map getInvokerLookups()
          Returns the Map of generated invoker lookups
 Map<String,String> getInvokers()
          Returns the Map of generated invokers
 List<String> getMethods()
          Returns the list of generated methods
 int getNextId()
           
 PackageBuilder getPackageBuilder()
           
 BaseDescr getParentDescr()
           
 Package getPkg()
          Returns the current package being built
 List<DroolsWarning> getWarnings()
           
 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<String,String> invokers)
           
 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<DroolsError> getErrors()
Returns the list of errors found while building the current context

Returns:

addError

public void addError(DroolsError error)

getWarnings

public List<DroolsWarning> getWarnings()

addWarning

public void addWarning(DroolsWarning warning)

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<String,String> getInvokers()
Returns the Map of generated invokers

Returns:

setInvokers

public void setInvokers(Map<String,String> invokers)

getMethods

public List<String> getMethods()
Returns the list of generated methods

Returns:

addMethod

public void addMethod(String method)

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-2014 JBoss by Red Hat. All Rights Reserved.