org.databene.benerator.engine.statement
Class WhileStatement

java.lang.Object
  extended by org.databene.benerator.engine.statement.ConditionStatement
      extended by org.databene.benerator.engine.statement.WhileStatement
All Implemented Interfaces:
java.io.Closeable, Statement

public class WhileStatement
extends ConditionStatement

'While' loop statement.

Created: 19.02.2010 09:15:11

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.engine.statement.ConditionStatement
condition
 
Constructor Summary
WhileStatement(org.databene.script.Expression<java.lang.Boolean> condition)
           
WhileStatement(org.databene.script.Expression<java.lang.Boolean> condition, java.util.List<Statement> statements)
           
 
Method Summary
 void close()
           
 boolean execute(BeneratorContext context)
           
 void setSubStatements(java.util.List<Statement> statements)
           
 
Methods inherited from class org.databene.benerator.engine.statement.ConditionStatement
getCondidition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhileStatement

public WhileStatement(org.databene.script.Expression<java.lang.Boolean> condition)

WhileStatement

public WhileStatement(org.databene.script.Expression<java.lang.Boolean> condition,
                      java.util.List<Statement> statements)
Method Detail

setSubStatements

public void setSubStatements(java.util.List<Statement> statements)

execute

public boolean execute(BeneratorContext context)

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013. All Rights Reserved.