|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.reteoo.builder.BuildContext
public class BuildContext
A build context for Reteoo Builder
Constructor Summary | |
---|---|
BuildContext(ReteooRuleBase rulebase,
ReteooBuilder.IdGenerator idGenerator)
|
Method Summary | |
---|---|
void |
decrementCurrentPatternOffset()
|
BetaConstraints |
getBetaconstraints()
|
int |
getCurrentPatternOffset()
|
int |
getNextId()
Returns an Id for the next node |
ObjectSource |
getObjectSource()
|
Map |
getObjectType()
|
ReteooRuleBase |
getRuleBase()
Returns context rulebase |
TupleSource |
getTupleSource()
|
InternalWorkingMemory[] |
getWorkingMemories()
Return the array of working memories associated with the given rulebase. |
void |
incrementCurrentPatternOffset()
|
RuleConditionElement |
peek()
Returns the top stack element without removing it |
RuleConditionElement |
pop()
Removes the top stack element |
void |
push(RuleConditionElement rce)
Adds the rce to the build stack |
void |
releaseLastId()
Method used to undo previous id assignment |
void |
setBetaconstraints(BetaConstraints betaconstraints)
|
void |
setCurrentPatternOffset(int currentPatternIndex)
|
void |
setObjectSource(ObjectSource objectSource)
|
void |
setObjectType(Map objectType)
|
void |
setTupleSource(TupleSource tupleSource)
|
ListIterator |
stackIterator()
Returns a list iterator to iterate over the stacked elements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildContext(ReteooRuleBase rulebase, ReteooBuilder.IdGenerator idGenerator)
Method Detail |
---|
public int getCurrentPatternOffset()
public void setCurrentPatternOffset(int currentPatternIndex)
currentPatternOffset
- the currentPatternOffset to setpublic ObjectSource getObjectSource()
public void setObjectSource(ObjectSource objectSource)
objectSource
- the objectSource to setpublic Map getObjectType()
public void setObjectType(Map objectType)
objectType
- the objectType to setpublic TupleSource getTupleSource()
public void setTupleSource(TupleSource tupleSource)
tupleSource
- the tupleSource to setpublic void incrementCurrentPatternOffset()
public void decrementCurrentPatternOffset()
public ReteooRuleBase getRuleBase()
public InternalWorkingMemory[] getWorkingMemories()
public int getNextId()
public void releaseLastId()
public void push(RuleConditionElement rce)
rce
- public RuleConditionElement pop()
public RuleConditionElement peek()
public ListIterator stackIterator()
public BetaConstraints getBetaconstraints()
public void setBetaconstraints(BetaConstraints betaconstraints)
betaconstraints
- the betaconstraints to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |