|
||||||||||
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 IForETIR
public ISimpleLValueTIR getIdentifier()
getIdentifier
in interface IForETIR
public ExpressionTIR getLow()
getLow
in interface IForETIR
public ExpressionTIR getHigh()
getHigh
in interface IForETIR
public HobbesType getType()
ExpressionTIR
getType
in interface ExpressionTIR
public <T> T accept(ExpressionTIRVisitor<T> visitor)
ExpressionTIR
ExpressionTIRVisitor
.
accept
in interface ExpressionTIR
visitor
- the visitor object.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public IPosition getPosition()
getPosition
in interface HobbesTIR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |