org.sintef.mofscript.runtime.statement
Class WhileStatementExecutor
java.lang.Object
org.sintef.mofscript.runtime.statement.StatementExecutor
org.sintef.mofscript.runtime.statement.WhileStatementExecutor
- All Implemented Interfaces:
- MofScriptExecuter, BreakStatementListener
public class WhileStatementExecutor
- extends StatementExecutor
- implements BreakStatementListener
Class for execution of while statements
- Author:
- gko
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhileStatementExecutor
public WhileStatementExecutor(MOFScriptStatement statement,
ExecutionEnvironment env,
RuleExecutor ownerRule)
executeStatement
public java.lang.Object executeStatement(java.lang.Object rule_create)
throws MofScriptExecutionException
- Overrides superclass executeStatement
- Overrides:
executeStatement
in class StatementExecutor
- Parameters:
rule_create
-
- 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
- Parameters:
ownedContext
-