org.eclipse.mofscript.runtime
Class MofScriptExecuterFactory

java.lang.Object
  extended by org.eclipse.mofscript.runtime.MofScriptExecuterFactory

public class MofScriptExecuterFactory
extends java.lang.Object

Handles the creation of executors

Author:
jol

Constructor Summary
MofScriptExecuterFactory()
           
 
Method Summary
static ExecutionEnvironment createExecutionEnvironment()
          Creates the correct environment based on the getUseTracebility()
static ExpressionEvaluator createExpressionExecutor(Expression exp, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
           
static StatementExecutor createStatementExecutor(MOFScriptStatement statement, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MofScriptExecuterFactory

public MofScriptExecuterFactory()
Method Detail

createStatementExecutor

public static StatementExecutor createStatementExecutor(MOFScriptStatement statement,
                                                        ExecutionEnvironment env,
                                                        RuleExecutor ownerRuleExecutor)
Parameters:
statement -
Returns:

createExpressionExecutor

public static ExpressionEvaluator createExpressionExecutor(Expression exp,
                                                           ExecutionEnvironment env,
                                                           RuleExecutor ownerRuleExecutor)
Parameters:
exp -
Returns:

createExecutionEnvironment

public static ExecutionEnvironment createExecutionEnvironment()
Creates the correct environment based on the getUseTracebility()

Returns:
The environment (tracebility or regular)