public interface Restriction extends Externalizable, Cloneable
Modifier and Type | Method and Description |
---|---|
Restriction |
clone() |
ContextEntry |
createContextEntry() |
Evaluator |
getEvaluator() |
Declaration[] |
getRequiredDeclarations() |
boolean |
isAllowed(InternalReadAccessor extractor,
InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry context) |
boolean |
isAllowedCachedLeft(ContextEntry context,
InternalFactHandle handle) |
boolean |
isAllowedCachedRight(LeftTuple tuple,
ContextEntry context) |
boolean |
isTemporal()
Returns true if this is a temporal restriction
|
void |
replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
A restriction may be required to replace an old
declaration object by a new updated one
|
readExternal, writeExternal
Declaration[] getRequiredDeclarations()
boolean isAllowed(InternalReadAccessor extractor, InternalFactHandle handle, InternalWorkingMemory workingMemory, ContextEntry context)
boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)
boolean isAllowedCachedRight(LeftTuple tuple, ContextEntry context)
ContextEntry createContextEntry()
void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
oldDecl
- newDecl
- Evaluator getEvaluator()
boolean isTemporal()
Restriction clone()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.