org.sintef.mofscript.runtime.statement
Class WhileStatementExecutor

java.lang.Object
  extended by org.sintef.mofscript.runtime.statement.StatementExecutor
      extended by org.sintef.mofscript.runtime.statement.WhileStatementExecutor
All Implemented Interfaces:
MofScriptExecuter, BreakStatementListener

public class WhileStatementExecutor
extends StatementExecutor
implements BreakStatementListener


Field Summary
 
Fields inherited from class org.sintef.mofscript.runtime.statement.StatementExecutor
_breakContext, _env, _ownerRule, _statement
 
Constructor Summary
WhileStatementExecutor(MOFScriptStatement statement, ExecutionEnvironment env, RuleExecutor ownerRule)
           
 
Method Summary
protected  void addLocalVariables(WhileStatement whileSt, ExecutionEnvironment env)
          Adds local variables to the environment
 void breakExecuted(MOFScriptStatementOwner ownedContext)
          BreakSTatementListener event operations
 java.lang.Object executeStatement(java.lang.Object rule_create)
          Overrides superclass executeStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhileStatementExecutor

public WhileStatementExecutor(MOFScriptStatement statement,
                              ExecutionEnvironment env,
                              RuleExecutor ownerRule)
Method Detail

executeStatement

public java.lang.Object executeStatement(java.lang.Object rule_create)
                                  throws MofScriptExecutionException
Overrides superclass executeStatement

Overrides:
executeStatement in class StatementExecutor
Throws:
MofScriptExecutionException

addLocalVariables

protected void addLocalVariables(WhileStatement whileSt,
                                 ExecutionEnvironment env)
Adds local variables to the environment

Parameters:
whileSt -
env -

breakExecuted

public void breakExecuted(MOFScriptStatementOwner ownedContext)
BreakSTatementListener event operations

Specified by:
breakExecuted in interface BreakStatementListener