Package org.drools.core.spi
Interface Restriction
-
- All Superinterfaces:
Cloneable,Externalizable,Serializable
- All Known Implementing Classes:
AbstractCompositeRestriction,PredicateConstraint,ReturnValueRestriction
public interface Restriction extends Externalizable, Cloneable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Restrictionclone()ContextEntrycreateContextEntry()EvaluatorgetEvaluator()Declaration[]getRequiredDeclarations()booleanisAllowed(InternalReadAccessor extractor, InternalFactHandle handle, ReteEvaluator reteEvaluator, ContextEntry context)booleanisAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)booleanisAllowedCachedRight(Tuple tuple, ContextEntry context)booleanisTemporal()Returns true if this is a temporal restrictionvoidreplaceDeclaration(Declaration oldDecl, Declaration newDecl)A restriction may be required to replace an old declaration object by a new updated one-
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
-
-
-
Method Detail
-
getRequiredDeclarations
Declaration[] getRequiredDeclarations()
-
isAllowed
boolean isAllowed(InternalReadAccessor extractor, InternalFactHandle handle, ReteEvaluator reteEvaluator, ContextEntry context)
-
isAllowedCachedLeft
boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)
-
isAllowedCachedRight
boolean isAllowedCachedRight(Tuple tuple, ContextEntry context)
-
createContextEntry
ContextEntry createContextEntry()
-
replaceDeclaration
void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
A restriction may be required to replace an old declaration object by a new updated one- Parameters:
oldDecl-newDecl-
-
getEvaluator
Evaluator getEvaluator()
-
isTemporal
boolean isTemporal()
Returns true if this is a temporal restriction- Returns:
-
clone
Restriction clone()
-
-