|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.rule.builder.RuleBuildContext
public class RuleBuildContext
A context for the current build
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 |
Dialect |
getDialect()
|
List |
getErrors()
Returns the list of errors found while building the current context |
Map |
getInvokerLookups()
Returns the Map |
Map |
getInvokers()
Returns the Map |
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 |
---|
public RuleBuildContext(Package pkg, RuleDescr ruleDescr, DialectRegistry registry)
Method Detail |
---|
public Dialect getDialect()
public List getErrors()
public Package getPkg()
public Rule getRule()
public RuleDescr getRuleDescr()
public DeclarationScopeResolver getDeclarationResolver()
public void setDeclarationResolver(DeclarationScopeResolver variables)
declarationResolver
- public Map getDescrLookups()
public void setDescrLookups(Map descrLookups)
public Map getInvokerLookups()
public void setInvokerLookups(Map invokerLookups)
public Map getInvokers()
public void setInvokers(Map invokers)
public List getMethods()
public void setMethods(List methods)
public int getCurrentId()
public int getNextId()
public int getPatternId()
public int getNextPatternId()
public void setPatternId(int patternId)
public Stack getBuildStack()
public static void setAttributes(Rule rule, List attributes)
rule
- attributes
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |