站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

RuleBuildContext (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule.builder
Class RuleBuildContext

java.lang.Object
  extended by org.drools.rule.builder.RuleBuildContext

public class RuleBuildContext
extends Object

A context for the current build

Author:
etirelli

Constructor Summary
RuleBuildContext(Package pkg, RuleDescr ruleDescr, DialectRegistry registry)
          Default constructor
 
Method Summary
 Stack getBuildStack()
           
 int getCurrentId()
          Returns current counter value for generated method names
 DeclarationScopeResolver getDeclarationResolver()
          Returns the available declarationResolver instance
 Map getDescrLookups()
          Returns the Map of descriptor lookups
 Dialect getDialect()
           
 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()
           
 int getNextPatternId()
           
 int getPatternId()
           
 Package getPkg()
          Returns the current package being built
 Rule getRule()
          Returns the current Rule being built
 RuleDescr getRuleDescr()
          Returns the current RuleDescriptor
static void setAttributes(Rule rule, List attributes)
          Sets rule Attributes
 void setDeclarationResolver(DeclarationScopeResolver variables)
          Sets the available declarationResolver instance
 void setDescrLookups(Map descrLookups)
           
 void setInvokerLookups(Map invokerLookups)
           
 void setInvokers(Map invokers)
           
 void setMethods(List methods)
           
 void setPatternId(int patternId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleBuildContext

public RuleBuildContext(Package pkg,
                        RuleDescr ruleDescr,
                        DialectRegistry registry)
Default constructor

Method Detail

getDialect

public Dialect getDialect()

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:

getRule

public Rule getRule()
Returns the current Rule being built

Returns:

getRuleDescr

public RuleDescr getRuleDescr()
Returns the current RuleDescriptor

Returns:

getDeclarationResolver

public DeclarationScopeResolver getDeclarationResolver()
Returns the available declarationResolver instance

Returns:

setDeclarationResolver

public void setDeclarationResolver(DeclarationScopeResolver variables)
Sets the available declarationResolver instance

Parameters:
declarationResolver -

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()

getPatternId

public int getPatternId()

getNextPatternId

public int getNextPatternId()

setPatternId

public void setPatternId(int patternId)

getBuildStack

public Stack getBuildStack()

setAttributes

public static void setAttributes(Rule rule,
                                 List attributes)
Sets rule Attributes

Parameters:
rule -
attributes -


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