2014-09-02 08:33:54 +00:00
|
|
|
package de.dhbwstuttgart.syntaxtree.statement;
|
2014-02-09 15:07:31 +00:00
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
public class WhileStmt extends Statement
|
|
|
|
{
|
|
|
|
public WhileStmt(int offset, int variableLength)
|
|
|
|
{
|
2016-12-15 23:00:37 +00:00
|
|
|
super(null,variableLength);
|
2013-10-18 11:33:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public Expr expr;
|
|
|
|
public Statement loop_block;
|
2016-12-15 23:00:37 +00:00
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
public void set_Expr(Expr exp)
|
|
|
|
{
|
|
|
|
this.expr = exp;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void set_Loop_block(Statement blk)
|
|
|
|
{
|
|
|
|
this.loop_block = blk;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2015-05-12 17:49:27 +00:00
|
|
|
* <br/>Author: Martin Pl�micke
|
2013-10-18 11:33:46 +00:00
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
return "WHILE " + loop_block.toString();
|
|
|
|
}
|
|
|
|
|
2014-02-22 03:58:49 +00:00
|
|
|
|
2015-06-16 12:58:27 +00:00
|
|
|
|
2013-10-18 11:33:46 +00:00
|
|
|
}
|