1 46 package org.codehaus.groovy.ast.stmt; 47 48 import org.codehaus.groovy.ast.GroovyCodeVisitor; 49 import org.codehaus.groovy.ast.expr.BooleanExpression; 50 51 57 public class DoWhileStatement extends Statement { 58 59 private BooleanExpression booleanExpression; 60 private Statement loopBlock; 61 62 63 public DoWhileStatement(BooleanExpression booleanExpression, Statement loopBlock) { 64 this.booleanExpression = booleanExpression; 65 this.loopBlock = loopBlock; 66 } 67 68 public void visit(GroovyCodeVisitor visitor) { 69 visitor.visitDoWhileLoop(this); 70 } 71 72 public BooleanExpression getBooleanExpression() { 73 return booleanExpression; 74 } 75 76 public Statement getLoopBlock() { 77 return loopBlock; 78 } 79 } 80 | Popular Tags |