Package org.drools.base.rule
Interface RuleConditionElement
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Externalizable,RuleComponent,java.io.Serializable
- All Known Subinterfaces:
PatternSource,Timer
- All Known Implementing Classes:
Accumulate,AsyncReceive,AsyncSend,Collect,ConditionalBranch,ConditionalElement,EntryPointId,EvalCondition,Forall,From,GroupElement,MultiAccumulate,NamedConsequence,Pattern,QueryElement,SingleAccumulate,WindowReference,XpathBackReference.RelativePattern
public interface RuleConditionElement extends RuleComponent, java.io.Externalizable, java.lang.Cloneable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuleConditionElementclone()Returns a clone from itselfjava.util.Map<java.lang.String,Declaration>getInnerDeclarations()Returns a Map of declarations that are visible inside this conditional elementjava.util.List<? extends RuleConditionElement>getNestedElements()Returs a list of RuleConditionElement's that are nested inside the current elementjava.util.Map<java.lang.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(java.lang.String identifier)Resolves the given identifier in the current scope and returns the Declaration object for the declaration.
-
-
-
Method Detail
-
getInnerDeclarations
java.util.Map<java.lang.String,Declaration> getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element- Returns:
-
getOuterDeclarations
java.util.Map<java.lang.String,Declaration> getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element.- Returns:
-
resolveDeclaration
Declaration resolveDeclaration(java.lang.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
java.util.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:
-
-