com.jscape.util.workflow.statements
Class WhileStatement

java.lang.Object
  extended by com.jscape.util.workflow.statements.WhileStatement
All Implemented Interfaces:
Statement, java.io.Serializable

public final class WhileStatement
extends java.lang.Object
implements Statement

Cycle statement.

Author:
Alex
See Also:
Serialized Form

Constructor Summary
WhileStatement(Expression expression, Statement statement)
          Creates a new statement instance.
 
Method Summary
 void execute(Context context)
          Executes statement on the specified context.
 Expression getExpression()
          Returns a statement expression.
 Statement getStatement()
          Returns an execution statement.
 void setExpression(Expression value)
          Sets a new statement expression.
 void setStatement(Statement value)
          Sets a new execution statement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhileStatement

public WhileStatement(Expression expression,
                      Statement statement)
Creates a new statement instance.

Parameters:
expression - condition expression
statement - target statement
Method Detail

getExpression

public Expression getExpression()
Returns a statement expression.

Returns:
a statement expression

setExpression

public void setExpression(Expression value)
Sets a new statement expression.

Parameters:
value - a new statement expression

getStatement

public Statement getStatement()
Returns an execution statement.

Returns:
an execution statement

setStatement

public void setStatement(Statement value)
Sets a new execution statement.

Parameters:
value - a new execution statement

execute

public void execute(Context context)
Description copied from interface: Statement
Executes statement on the specified context.

Specified by:
execute in interface Statement
Parameters:
context - workflow context.


Copyright © 2007 JSCAPE Corp. All Rights Reserved.