Package org.drools.core.rule
Interface RuleConditionElement
-
- All Superinterfaces:
Cloneable,Externalizable,RuleComponent,Serializable
- All Known Subinterfaces:
PatternSource,Timer
- All Known Implementing Classes:
Accumulate,AsyncReceive,AsyncSend,BaseTimer,Collect,CompositeMaxDurationTimer,ConditionalBranch,ConditionalElement,CronTimer,DurationTimer,EntryPointId,EvalCondition,ExpressionIntervalTimer,Forall,From,GroupElement,IntervalTimer,MultiAccumulate,NamedConsequence,Pattern,QueryElement,SingleAccumulate,WindowReference,XpathBackReference.RelativePattern
public interface RuleConditionElement extends RuleComponent, Externalizable, Cloneable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuleConditionElementclone()Returns a clone from itselfMap<String,Declaration>getInnerDeclarations()Returns a Map of declarations that are visible inside this conditional elementList<? extends RuleConditionElement>getNestedElements()Returs a list of RuleConditionElement's that are nested inside the current elementMap<String,Declaration>getOuterDeclarations()Returns a Map of declarations that are visible outside this conditional element.booleanisPatternScopeDelimiter()Returns true in case this RuleConditionElement delimits a pattern visibility scope.DeclarationresolveDeclaration(String identifier)Resolves the given identifier in the current scope and returns the Declaration object for the declaration.-
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
-
-
-
Method Detail
-
getInnerDeclarations
Map<String,Declaration> getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element- Returns:
-
getOuterDeclarations
Map<String,Declaration> getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element.- Returns:
-
resolveDeclaration
Declaration resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. Returns null if identifier can not be resolved.- Parameters:
identifier-- Returns:
-
clone
RuleConditionElement clone()
Returns a clone from itself- Returns:
-
getNestedElements
List<? extends RuleConditionElement> getNestedElements()
Returs a list of RuleConditionElement's that are nested inside the current element- Returns:
-
isPatternScopeDelimiter
boolean isPatternScopeDelimiter()
Returns 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:
-
-