ida.pelab.prt.pattern
Class LoopVariable
java.lang.Object
cetus.hir.Expression
ida.pelab.prt.pattern.LoopVariable
- All Implemented Interfaces:
- cetus.hir.Printable, cetus.hir.Traversable, java.lang.Cloneable, java.lang.Comparable<cetus.hir.Expression>
public class LoopVariable
- extends cetus.hir.Expression
Methods inherited from class cetus.hir.Expression |
clone, compareTo, findExpression, getChildren, getParent, getStatement, hashCode, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LoopVariable
public LoopVariable()
LoopVariable
public LoopVariable(cetus.hir.Expression ex,
cetus.hir.Expression lb,
cetus.hir.Expression ub,
cetus.hir.Expression step,
LoopDirectionType dir,
cetus.hir.BinaryOperator op)
setDirection
public void setDirection(LoopDirectionType dir)
getDirection
public LoopDirectionType getDirection()
setLowerBound
public void setLowerBound(cetus.hir.Expression lowerBound)
getLowerBound
public cetus.hir.Expression getLowerBound()
setStep
public void setStep(cetus.hir.Expression step)
getStep
public cetus.hir.Expression getStep()
setUpperBound
public void setUpperBound(cetus.hir.Expression upperBound)
getUpperBound
public cetus.hir.Expression getUpperBound()
getAbsoluteUpperBound
public cetus.hir.Expression getAbsoluteUpperBound()
setAnnotatedExpression
public void setAnnotatedExpression(cetus.hir.Expression expression)
getVariableExpression
public cetus.hir.Expression getVariableExpression()
buildVariable
public static LoopVariable buildVariable(cetus.hir.ForLoop loop)
toString
public java.lang.String toString()
- Overrides:
toString
in class cetus.hir.Expression
toAnnotationString
public java.lang.String toAnnotationString()
toIndexString
public java.lang.String toIndexString()
equals
public boolean equals(java.lang.Object input)
- Overrides:
equals
in class cetus.hir.Expression
SymbolicComparison
public static boolean SymbolicComparison(LoopVariable first,
LoopVariable second)
setConditionOpr
public void setConditionOpr(cetus.hir.BinaryOperator conditionOpr)
getConditionOpr
public cetus.hir.BinaryOperator getConditionOpr()