public class QueryNameConstraint extends Object implements AlphaNodeFieldConstraint, IndexableConstraint, AcceptsReadAccessor, Externalizable
Constraint.ConstraintType| Constructor and Description |
|---|
QueryNameConstraint() |
QueryNameConstraint(InternalReadAccessor readAccessor,
String queryName) |
| Modifier and Type | Method and Description |
|---|---|
Constraint |
clone()
Clones the constraint
|
QueryNameConstraint |
cloneIfInUse()
Clone this constraints only if it is already used by a different node, otherwise returns this
|
boolean |
equals(Object obj) |
IndexUtil.ConstraintType |
getConstraintType() |
FieldValue |
getField() |
InternalReadAccessor |
getFieldExtractor() |
AbstractHashTable.FieldIndex |
getFieldIndex() |
String |
getQueryName() |
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 |
isAllowed(InternalFactHandle handle,
InternalWorkingMemory workingMemory) |
boolean |
isIndexable(short nodeType) |
boolean |
isTemporal()
Returns true in case this constraint is a temporal constraint
|
boolean |
isUnification() |
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.
|
void |
setReadAccessor(InternalReadAccessor readAccessor) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
finalize, getClass, notify, notifyAll, wait, wait, waitunsetUnificationaddPackageNames, equals, getListenedPropertyMask, getPackageNames, registerEvaluationContextpublic QueryNameConstraint()
public QueryNameConstraint(InternalReadAccessor readAccessor, String queryName)
public boolean isAllowed(InternalFactHandle handle, InternalWorkingMemory workingMemory)
isAllowed in interface AlphaNodeFieldConstraintpublic boolean isUnification()
isUnification in interface IndexableConstraintpublic boolean isIndexable(short nodeType)
isIndexable in interface IndexableConstraintpublic IndexUtil.ConstraintType getConstraintType()
getConstraintType in interface IndexableConstraintpublic FieldValue getField()
getField in interface IndexableConstraintpublic AbstractHashTable.FieldIndex getFieldIndex()
getFieldIndex in interface IndexableConstraintpublic InternalReadAccessor getFieldExtractor()
getFieldExtractor in interface IndexableConstraintpublic void setReadAccessor(InternalReadAccessor readAccessor)
setReadAccessor in interface AcceptsReadAccessorpublic Declaration[] getRequiredDeclarations()
ConstraintgetRequiredDeclarations in interface Constraintpublic void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
ConstraintreplaceDeclaration in interface Constraintpublic Constraint clone()
Constraintclone in interface Constraintclone in class Objectpublic String getQueryName()
public Constraint.ConstraintType getType()
ConstraintgetType in interface Constraintpublic boolean isTemporal()
ConstraintisTemporal in interface Constraintpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic QueryNameConstraint cloneIfInUse()
AlphaNodeFieldConstraintcloneIfInUse in interface AlphaNodeFieldConstraintCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.