public class PredicateConstraint extends MutableTypeConstraint implements Restriction, Wireable, Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
PredicateConstraint.PredicateContextEntry |
static class |
PredicateConstraint.SafePredicateExpression |
Constraint.ConstraintType| Constructor and Description |
|---|
PredicateConstraint() |
PredicateConstraint(Declaration[] previousDeclarations,
Declaration[] localDeclarations) |
PredicateConstraint(PredicateExpression evaluator) |
PredicateConstraint(PredicateExpression expression,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
String[] requiredGlobals,
String[] requiredOperators) |
cloneIfInUse, getType, setInUse, setTypepublic PredicateConstraint()
public PredicateConstraint(PredicateExpression evaluator)
public PredicateConstraint(Declaration[] previousDeclarations, Declaration[] localDeclarations)
public PredicateConstraint(PredicateExpression expression, Declaration[] previousDeclarations, Declaration[] localDeclarations, String[] requiredGlobals, String[] requiredOperators)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MutableTypeConstraintIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class MutableTypeConstraintIOExceptionpublic Declaration[] getRequiredDeclarations()
ConstraintgetRequiredDeclarations in interface ConstraintgetRequiredDeclarations in interface Restrictionpublic Declaration[] getPreviousDeclarations()
public Declaration[] getLocalDeclarations()
public String[] getGlobals()
public String[] getOperators()
public void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
RestrictionreplaceDeclaration in interface ConstraintreplaceDeclaration in interface Restrictionpublic void setPredicateExpression(PredicateExpression expression)
public PredicateExpression getPredicateExpression()
public boolean isTemporal()
RestrictionisTemporal in interface ConstraintisTemporal in interface Restrictionpublic ContextEntry createContextEntry()
createContextEntry in interface AlphaNodeFieldConstraintcreateContextEntry in interface BetaNodeFieldConstraintcreateContextEntry in interface Restrictionpublic boolean isAllowed(InternalFactHandle handle, InternalWorkingMemory workingMemory, ContextEntry ctx)
isAllowed in interface AlphaNodeFieldConstraintpublic boolean isAllowed(InternalReadAccessor extractor, InternalFactHandle handle, InternalWorkingMemory workingMemory, ContextEntry context)
isAllowed in interface Restrictionpublic boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)
isAllowedCachedLeft in interface BetaNodeFieldConstraintisAllowedCachedLeft in interface Restrictionpublic boolean isAllowedCachedRight(LeftTuple tuple, ContextEntry context)
isAllowedCachedRight in interface BetaNodeFieldConstraintisAllowedCachedRight in interface Restrictionpublic PredicateConstraint clone()
Constraintclone in interface Constraintclone in interface Restrictionclone in class MutableTypeConstraintpublic Evaluator getEvaluator()
getEvaluator in interface RestrictionCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.