public class TupleStartEqualsConstraint extends Object implements BetaNodeFieldConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
TupleStartEqualsConstraint.TupleStartEqualsConstraintContextEntry |
Constraint.ConstraintType| Constructor and Description |
|---|
TupleStartEqualsConstraint() |
| Modifier and Type | Method and Description |
|---|---|
TupleStartEqualsConstraint |
clone()
Clones the constraint
|
BetaNodeFieldConstraint |
cloneIfInUse()
Clone this constraints only if it is already used by a different node, otherwise returns this
|
ContextEntry |
createContextEntry() |
boolean |
equals(Object object) |
static TupleStartEqualsConstraint |
getInstance() |
Declaration[] |
getRequiredDeclarations()
Returns all the declarations required by the given
constraint implementation.
|
Constraint.ConstraintType |
getType()
Returns the type of the constraint, either ALPHA, BETA or UNKNOWN
|
int |
hashCode() |
boolean |
isAllowedCachedLeft(ContextEntry context,
InternalFactHandle handle) |
boolean |
isAllowedCachedRight(Tuple tuple,
ContextEntry context) |
boolean |
isTemporal()
Returns true in case this constraint is a temporal constraint
|
void |
readExternal(ObjectInput in) |
void |
replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
When a rule contains multiple logical branches, i.e., makes
use of 'OR' CE, it is required to clone patterns and declarations
for each logical branch.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
finalize, getClass, notify, notifyAll, wait, wait, waitaddPackageNames, equals, getListenedPropertyMask, getPackageNames, registerEvaluationContextpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic static TupleStartEqualsConstraint getInstance()
public Declaration[] getRequiredDeclarations()
ConstraintgetRequiredDeclarations in interface Constraintpublic void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
ConstraintreplaceDeclaration in interface Constraintpublic boolean isTemporal()
ConstraintisTemporal in interface Constraintpublic ContextEntry createContextEntry()
createContextEntry in interface BetaNodeFieldConstraintpublic boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)
isAllowedCachedLeft in interface BetaNodeFieldConstraintpublic boolean isAllowedCachedRight(Tuple tuple, ContextEntry context)
isAllowedCachedRight in interface BetaNodeFieldConstraintpublic TupleStartEqualsConstraint clone()
Constraintclone in interface Constraintclone in class Objectpublic Constraint.ConstraintType getType()
ConstraintgetType in interface Constraintpublic BetaNodeFieldConstraint cloneIfInUse()
BetaNodeFieldConstraintcloneIfInUse in interface BetaNodeFieldConstraintCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.