Package org.drools.base.rule
Class Forall
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.base.rule.Forall
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,RuleComponent,RuleConditionElement
The forall conditional element.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemainingPattern(Pattern pattern) Adds one more pattern to the list of remaining patternsclone()Returns a clone from itselfForall inner declarations are only provided by the base patterns since it negates the remaining patternsReturs a list of RuleConditionElement's that are nested inside the current elementForall does not export any declarationsbooleanbooleanReturns true in case this RuleConditionElement delimits a pattern visibility scope.voidresolveDeclaration(String identifier) Forall can only resolve declarations from its base patternvoidsetBasePattern(Pattern basePattern) voidsetEmptyBetaConstraints(boolean emptyBetaConstraints) voidsetRemainingPatterns(List<Pattern> remainingPatterns) toString()void
-
Constructor Details
-
Forall
public Forall() -
Forall
-
Forall
-
-
Method Details
-
readExternal
- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Throws:
IOException
-
clone
Description copied from interface:RuleConditionElementReturns a clone from itself- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
getInnerDeclarations
Forall inner declarations are only provided by the base patterns since it negates the remaining patterns- Returns:
-
getOuterDeclarations
Forall does not export any declarations- Returns:
-
resolveDeclaration
Forall can only resolve declarations from its base pattern- Returns:
-
getBasePattern
- Returns:
- the basePattern
-
setBasePattern
- Parameters:
basePattern- the basePattern to set
-
getRemainingPatterns
- Returns:
- the remainingPatterns
-
setRemainingPatterns
- Parameters:
remainingPatterns- the remainingPatterns to set
-
addRemainingPattern
Adds one more pattern to the list of remaining patterns -
getNestedElements
Description copied from interface:RuleConditionElementReturs a list of RuleConditionElement's that are nested inside the current element- Returns:
-
isPatternScopeDelimiter
public boolean isPatternScopeDelimiter()Description copied from interface:RuleConditionElementReturns true in case this RuleConditionElement delimits a pattern visibility scope. For instance, AND CE is not a scope delimiter, while NOT CE is a scope delimiter- Returns:
-
isEmptyBetaConstraints
public boolean isEmptyBetaConstraints() -
setEmptyBetaConstraints
public void setEmptyBetaConstraints(boolean emptyBetaConstraints) -
toString
-