|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norecess.citkit.tir.expressions.ForETIR
public class ForETIR
The TIR for a for loop.
| Constructor Summary | |
|---|---|
ForETIR(IPosition position,
ISimpleLValueTIR identifier,
ExpressionTIR low,
ExpressionTIR high,
ExpressionTIR body)
Constructs a for loop. |
|
ForETIR(ISimpleLValueTIR identifier,
ExpressionTIR low,
ExpressionTIR high,
ExpressionTIR body)
Basic constructor. |
|
| Method Summary | ||
|---|---|---|
|
accept(ExpressionTIRVisitor<T> visitor)
Implements the visitor pattern with ExpressionTIRVisitor. |
|
boolean |
equals(java.lang.Object o)
|
|
ExpressionTIR |
getBody()
Returns the body of the for loop. |
|
ExpressionTIR |
getHigh()
Returns the high value for the index variable. |
|
ISimpleLValueTIR |
getIdentifier()
Returns the variable declaration of the for loop. |
|
ExpressionTIR |
getLow()
Returns the low (initial) value of the index variable. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the TIR. |
|
HobbesType |
getType()
Retrieves the type of the expression. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForETIR(IPosition position,
ISimpleLValueTIR identifier,
ExpressionTIR low,
ExpressionTIR high,
ExpressionTIR body)
position - the position of the for loop in the source code.identifier - the identifier of the loop.low - the low value of the loop variable.high - the high value of the loop variable.body - the body of the loop.
public ForETIR(ISimpleLValueTIR identifier,
ExpressionTIR low,
ExpressionTIR high,
ExpressionTIR body)
identifier - the loop index.low - the starting index value.high - the ending index value.body - the body of the loop.| Method Detail |
|---|
public ExpressionTIR getBody()
getBody in interface IForETIRpublic ISimpleLValueTIR getIdentifier()
getIdentifier in interface IForETIRpublic ExpressionTIR getLow()
getLow in interface IForETIRpublic ExpressionTIR getHigh()
getHigh in interface IForETIRpublic HobbesType getType()
ExpressionTIR
getType in interface ExpressionTIRpublic <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIRExpressionTIRVisitor.
accept in interface ExpressionTIRvisitor - the visitor object.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic IPosition getPosition()
getPosition in interface HobbesTIR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||