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

Field Summary
(package private) static boolean traceOn
           
(package private) static boolean umlAvailable
           
protected static java.lang.String umlFunctionCallClassName
           
protected static java.lang.String umlTraceabilityFunctionCallClassName
           
 
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 org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EObject baseModelObject)
           
static StatementExecutor createStatementExecutor(MOFScriptStatement statement, ExecutionEnvironment env, RuleExecutor ownerRuleExecutor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

umlFunctionCallClassName

protected static final java.lang.String umlFunctionCallClassName
See Also:
Constant Field Values

umlTraceabilityFunctionCallClassName

protected static final java.lang.String umlTraceabilityFunctionCallClassName
See Also:
Constant Field Values

traceOn

static boolean traceOn

umlAvailable

static boolean umlAvailable
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)

createResource

public static org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri,
                                                                     org.eclipse.emf.ecore.EObject baseModelObject)
Returns: