|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.rules.AbleClause
This class is an abstract base class that contains a function or method call, or a unary or binary relation between two Able data objects. Clauses are used in AbleConditionalRules.
Field Summary | |
---|---|
protected AbleRd |
myLhs
myLhs represents the left-hand side of this clause. |
protected int |
myOp
myOp is the relational operator to be used to evaluate the left-hand side of this clause against the right-hand side of this clause. |
protected AbleRd |
myRhs
myRhs represents the right-hand side of this clause. |
protected java.util.Vector |
myRuleRefs
myRuleRefs is a list of rules (AbleRule objects) that refer to this clause. |
Constructor Summary | |
---|---|
protected |
AbleClause(AbleRd theLhs,
int theOp,
AbleRd theRhs)
Create a new clause with the specified parts. |
Method Summary | |
---|---|
void |
addRuleRef(AbleRule theRule)
Register a rule that refers to this clause. |
protected abstract java.lang.String |
arlString()
Return a formal rule language string that describes this clause. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
protected boolean |
equals(AbleClause theAbleClause)
Determine whether this clause is equal to some other clause. |
AbleRd |
getLhs()
Retrieve the clause's left-hand side. |
protected int |
getLhsReferent()
Retrieve the unique Id of the AbleData object on this clause's left-hand side. |
int |
getOp()
Retrieve the clause's relational operator. |
java.lang.String |
getOpAsString()
Retrieve the clause's relational operator in human-readable string form. |
protected int |
getReferent()
Retrieve the unique Id of the AbleData object on this clause's right-hand side. |
java.util.BitSet |
getReferents()
Retrieve the Ids of the variables to which this data object refers, if any. |
AbleRd |
getRhs()
Retrieve the clause's right-hand side. |
protected int |
getRhsReferent()
Retrieve the unique Id of the AbleData object on this clause's right-hand side. |
AbleRule |
getRule()
Retrieve the first rule on the rule reference list. |
java.util.Vector |
getRuleRefs()
Retrieve the list of rules that refer to this clause. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
protected abstract java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
protected abstract java.lang.String |
xmlString()
Return a formal XML string that describes this clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AbleRd myLhs
protected int myOp
protected AbleRd myRhs
protected java.util.Vector myRuleRefs
Constructor Detail |
protected AbleClause(AbleRd theLhs, int theOp, AbleRd theRhs)
If either the left-hand side or the right-hand side is a variable, and that variable is keeping track of clauses in which the variable is referenced, the variable's set of references is updated to point to this clause.
theLhs
- The left-hand side of the clause.
theOp
- A relational operator with which to evaluate the two
sides, or operands, of this clause. The value must be
an AbleData.<Operator> constant.
theRhs
- The right-hand side of the clause.
Method Detail |
protected abstract java.lang.String arlString()
protected abstract java.lang.String xmlString()
protected abstract java.lang.String traceString(int theTraceStringFlavor)
theFlavor
- An AbleRuleSet.TraceStringFlavor value.
public final AbleRd getLhs()
public final int getOp()
public java.lang.String getOpAsString()
public final AbleRd getRhs()
public void addRuleRef(AbleRule theRule)
theRule
- A rule object that refers to this clause.
public final java.util.Vector getRuleRefs()
public AbleRule getRule()
protected int getLhsReferent()
protected int getRhsReferent()
protected int getReferent()
public java.util.BitSet getReferents()
protected boolean equals(AbleClause theAbleClause)
For the clauses to be considered equal:
theAbleClause
- The clause that is to be compared to this clause.
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |