Package org.drools.base.rule
Class EvalCondition
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.base.rule.EvalCondition
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Wireable,RuleComponent,RuleConditionElement
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.drools.base.rule.accessor.Wireable
Wireable.Immutable -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEvalCondition(EvalExpression eval, Declaration[] requiredDeclarations) EvalCondition(Declaration[] requiredDeclarations) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone from itselfbooleanReturns a Map of declarations that are visible inside this conditional elementList<? extends RuleConditionElement>Returs a list of RuleConditionElement's that are nested inside the current elementReturns a Map of declarations that are visible outside this conditional element.inthashCode()booleanisAllowed(BaseTuple tuple, ValueResolver valueResolver, Object context) booleanReturns true in case this RuleConditionElement delimits a pattern visibility scope.voidvoidreplaceDeclaration(Declaration declaration, Declaration resolved) resolveDeclaration(String identifier) Resolves the given identifier in the current scope and returns the Declaration object for the declaration.voidsetCloned(List<EvalCondition> cloned) voidsetEvalExpression(EvalExpression expression) voidsetOuterDeclarations(Map<String, Declaration> outerDeclarations) toString()voidvoid
-
Field Details
-
expression
-
requiredDeclarations
-
-
Constructor Details
-
EvalCondition
public EvalCondition() -
EvalCondition
-
EvalCondition
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getEvalExpression
-
wire
-
setEvalExpression
-
getRequiredDeclarations
-
createContext
-
isAllowed
-
clone
Description copied from interface:RuleConditionElementReturns a clone from itself- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
hashCode
public int hashCode() -
equals
-
getInnerDeclarations
Description copied from interface:RuleConditionElementReturns a Map of declarations that are visible inside this conditional element- Specified by:
getInnerDeclarationsin interfaceRuleConditionElement- Returns:
-
getOuterDeclarations
Description copied from interface:RuleConditionElementReturns a Map of declarations that are visible outside this conditional element.- Specified by:
getOuterDeclarationsin interfaceRuleConditionElement- Returns:
-
setOuterDeclarations
-
getNestedElements
Description copied from interface:RuleConditionElementReturs a list of RuleConditionElement's that are nested inside the current element- Specified by:
getNestedElementsin interfaceRuleConditionElement- 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- Specified by:
isPatternScopeDelimiterin interfaceRuleConditionElement- Returns:
-
resolveDeclaration
Description copied from interface:RuleConditionElementResolves the given identifier in the current scope and returns the Declaration object for the declaration. Returns null if identifier can not be resolved.- Specified by:
resolveDeclarationin interfaceRuleConditionElement- Returns:
-
replaceDeclaration
-
getCloned
-
setCloned
-
toString
-