|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.rule.LiteralConstraint
public class LiteralConstraint
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.drools.spi.Constraint |
|---|
Constraint.ConstraintType |
| Constructor Summary | |
|---|---|
LiteralConstraint()
|
|
LiteralConstraint(InternalReadAccessor extractor,
Evaluator evaluator,
FieldValue field)
|
|
LiteralConstraint(InternalReadAccessor extractor,
LiteralRestriction restriction)
|
|
| Method Summary | |
|---|---|
LiteralConstraint |
clone()
Clones the constraint |
ContextEntry |
createContextEntry()
|
boolean |
equals(Object object)
|
Evaluator |
getEvaluator()
|
FieldValue |
getField()
|
InternalReadAccessor |
getFieldExtractor()
|
AbstractHashTable.FieldIndex |
getFieldIndex()
|
Declaration[] |
getRequiredDeclarations()
Literal constraints cannot have required declarations, so always return an empty array. |
Constraint.ConstraintType |
getType()
Returns the type of the constraint, either ALPHA, BETA or UNKNOWN |
int |
hashCode()
|
boolean |
isAllowed(InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry ctx)
|
boolean |
isIndexable()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LiteralConstraint()
public LiteralConstraint(InternalReadAccessor extractor,
Evaluator evaluator,
FieldValue field)
public LiteralConstraint(InternalReadAccessor extractor,
LiteralRestriction restriction)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void setReadAccessor(InternalReadAccessor readAccessor)
setReadAccessor in interface AcceptsReadAccessorpublic Evaluator getEvaluator()
public FieldValue getField()
getField in interface IndexableConstraintpublic InternalReadAccessor getFieldExtractor()
getFieldExtractor in interface IndexableConstraintpublic Declaration[] getRequiredDeclarations()
getRequiredDeclarations in interface ConstraintDeclaration[]
public void replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
Constraint
replaceDeclaration in interface Constraint
public boolean isAllowed(InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry ctx)
isAllowed in interface AlphaNodeFieldConstraintpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic LiteralConstraint clone()
Constraint
clone in interface Constraintclone in class Objectpublic ContextEntry createContextEntry()
createContextEntry in interface AlphaNodeFieldConstraintpublic Constraint.ConstraintType getType()
Constraint
getType in interface Constraintpublic boolean isTemporal()
Constraint
isTemporal in interface Constraintpublic boolean isUnification()
isUnification in interface IndexableConstraintpublic boolean isIndexable()
isIndexable in interface IndexableConstraintpublic AbstractHashTable.FieldIndex getFieldIndex()
getFieldIndex in interface IndexableConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||