|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.rules.AbleRule
com.ibm.able.rules.AbleForLoopRule
This class represents a for-loop "iteration" rule consisting of an initializer expression, a conditional test expression, and an increment expression. The conditional test expression is tested at the top of the loop. The semantics are the same as a Java for( ; ; ) statement
| Field Summary | |
|---|---|
protected java.util.Vector |
myConsequents
myConsequents is a list of consequent clauses (AbleConsequentClause objects), the body of the for-loop. |
protected java.util.Vector |
myInitialExpressionList
myInitialExpressionList is an assignment expression used to set the initiali value of the loop variable |
protected java.util.Vector |
myIteratorExpressionList
myIteratorExpressionList is an assignment expression used to increment the loop variable |
protected AbleExpression |
myTestExpression
myTestExpression is a boolean expression. |
| Fields inherited from class com.ibm.able.rules.AbleRule |
|---|
myBooleanTruth, myBreakpoint, myComment, myEnabled, myFinalFlag, myFiredCount, myFiredFlag, myId, myLabel, myLocation, myPreConditions, myPriority, myPrompt, myProperties, myRdRefs, myRuleBlock, myRuleSet, myTemplateFlag, myTemplateName, myTemplateValues, myWrRefs, PriorityDefault, RuleIdInitial |
| Constructor Summary | |
|---|---|
AbleForLoopRule(java.lang.String theLabel,
AbleRd thePriority,
java.util.Vector theInitialExpressionList,
AbleExpression theTestExpression,
java.util.Vector theIteratorExpressionList,
java.util.Vector theConsequents)
Create a new conditional rule with the specified priority, antecedent clauses, and consequent clause. |
|
| Method Summary | |
|---|---|
java.lang.String |
arlString()
Return a formal Able Rule Language (ARL) String. |
java.lang.String |
armlString()
Return a formal XML string. |
java.util.Vector |
getDoActions()
Retrieve the rule's list of "do" action (AbleConsequent) clauses. |
java.util.Vector |
getInitialExpressionList()
|
java.util.Vector |
getIteratorExpressionList()
|
int |
getNumberOfDoActions()
Retrieve the number of "do" actions in this rule. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
AbleExpression |
getTestExpression()
Retrieve the rule's test expression. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
java.lang.String |
xmlString()
Return a formal XML string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Vector myInitialExpressionList
protected AbleExpression myTestExpression
protected java.util.Vector myIteratorExpressionList
protected java.util.Vector myConsequents
| Constructor Detail |
public AbleForLoopRule(java.lang.String theLabel,
AbleRd thePriority,
java.util.Vector theInitialExpressionList,
AbleExpression theTestExpression,
java.util.Vector theIteratorExpressionList,
java.util.Vector theConsequents)
theLabel - The unique label, or name, of this rule.
thePriority - The priority of this rule.
theInitialExpressionList - A list of AbleExpressions used to initialize the loop variable
theTestExpression - An AbleExpression used to test the loop variable. It must
be a boolean expression.
theIteratorExpressionList - A list of AbleExpressions used to increment the loop variable.
theConsequents - A list of AbleConsequentClause objects that define the
consequents of this rule. The list is cloned.
*
| Method Detail |
public java.util.Vector getInitialExpressionList()
public AbleExpression getTestExpression()
AbleIterationRule
getTestExpression in interface AbleIterationRulepublic java.util.Vector getIteratorExpressionList()
public int getNumberOfDoActions()
getNumberOfDoActions in interface AbleIterationRulepublic final java.util.Vector getDoActions()
getDoActions in interface AbleIterationRulepublic java.lang.String arlString()
arlString in class AbleRulepublic java.lang.String xmlString()
xmlString in class AbleRulepublic java.lang.String armlString()
armlString in class AbleRule
public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
throws AbleDataException
getTemplateString in class AbleRuletheTemplateVars - An ordered list of template variables referenced by this rule.
AbleDataExceptionAbleRuleTemplatepublic java.lang.String toString()
toString in class AbleRulepublic java.lang.String traceString(int theTraceStringFlavor)
traceString in class AbleRuletheTraceStringFlavor - An Able.TraceStringFlavor value.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||