|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norecess.citkit.tir.expressions.WhileETIR
public class WhileETIR
The TIR for a while statement.
| Constructor Summary | |
|---|---|
WhileETIR(ExpressionTIR test,
ExpressionTIR body)
Basic constructor. |
|
WhileETIR(IPosition position,
ExpressionTIR test,
ExpressionTIR body)
Constructs a while loop. |
|
| 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 while expression. |
|
IPosition |
getPosition()
Retrieves the position of the code that generated the AST. |
|
ExpressionTIR |
getTest()
Returns the test of the while expression. |
|
VoidType |
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 WhileETIR(IPosition position,
ExpressionTIR test,
ExpressionTIR body)
position - the position of the while loop in the source code.test - the test of the while loop.body - the body of the while loop.
public WhileETIR(ExpressionTIR test,
ExpressionTIR body)
test - the test of the while loop.body - the body of the while loop.| Method Detail |
|---|
public ExpressionTIR getBody()
getBody in interface IWhileETIRpublic ExpressionTIR getTest()
getTest in interface IWhileETIRpublic VoidType 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 | |||||||||