org.eclipse.mofscript.runtime.statement
Class StatementExecutor

java.lang.Object
  extended by org.eclipse.mofscript.runtime.statement.StatementExecutor
All Implemented Interfaces:
MofScriptExecuter
Direct Known Subclasses:
BreakStatementExecutor, DebugStatementExecutor, FileStatementExecutor, FunctionCallStatementExecutor, GeneralAssignmentExecutor, IfStatementExecutor, LoopStatementExecutor, PrintStatementExecutor, ResultAssignmentExecutor, ReturnStatementExecutor, TraceExecutor, VariableDeclarationStatementExecutor

public class StatementExecutor
extends java.lang.Object
implements MofScriptExecuter

The statement executor executes MofScript statements

Author:
jol

Field Summary
protected static BreakStatementListener _breakContext
           
protected  ExecutionEnvironment _env
           
protected  RuleExecutor _ownerRule
           
protected  MOFScriptStatement _statement
           
 
Constructor Summary
StatementExecutor(MOFScriptStatement statement, ExecutionEnvironment env, RuleExecutor ownerRule)
          Constructor
 
Method Summary
 java.lang.Object executeStatement(java.lang.Object rule_create)
          executeStatement - executes the current statement; Overridden by sub classes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_statement

protected MOFScriptStatement _statement

_env

protected ExecutionEnvironment _env

_ownerRule

protected RuleExecutor _ownerRule

_breakContext

protected static BreakStatementListener _breakContext
Constructor Detail

StatementExecutor

public StatementExecutor(MOFScriptStatement statement,
                         ExecutionEnvironment env,
                         RuleExecutor ownerRule)
Constructor

Parameters:
statement -
env -
ownerRule -
Method Detail

executeStatement

public java.lang.Object executeStatement(java.lang.Object rule_create)
                                  throws MofScriptExecutionException
executeStatement - executes the current statement; Overridden by sub classes

Parameters:
rule_create -
Throws:
MofScriptExecutionException