JavaPatternMatching/src/de/dhbwstuttgart/syntaxtree/statement/WhileStmt.java

38 lines
584 B
Java
Raw Normal View History

2014-09-02 08:33:54 +00:00
package de.dhbwstuttgart.syntaxtree.statement;
2013-10-18 11:33:46 +00:00
public class WhileStmt extends Statement
{
public WhileStmt(int offset, int variableLength)
{
super(null,variableLength);
2013-10-18 11:33:46 +00:00
}
public Expr expr;
public Statement loop_block;
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;
}
/**
* <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
2013-10-18 11:33:46 +00:00
}