public class ExecutionContextImpl extends AbstractExecutionContext
ExecutionContext
.Constructor and Description |
---|
ExecutionContextImpl(Context context,
ModelProvider modelProvider)
Creates new instance of
ExecutionContextImpl . |
ExecutionContextImpl(Context context,
ModelProvider modelProvider,
InterpreterStackTrace stackTrace)
Creates new instance of
ExecutionContextImpl . |
ExecutionContextImpl(ModelProvider modelProvider,
ModelInstance modelInstance,
Namespace namespace)
Creates new instance of
ExecutionContextImpl . |
ExecutionContextImpl(ModelProvider modelProvider,
ModelInstance modelInstance,
Namespace namespace,
InterpreterStackTrace stackTrace)
Creates new instance of
ExecutionContextImpl . |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionTrace(ExecutionTrace et)
Adds ExecutionTrace to the context.
|
void |
addExecutionTraceElement(ExecutionTraceElement ete)
Adds ExecutionTraceElement to the context.
|
void |
addSignal(Object signal)
Adds a signal to the signal queue.
|
static Namespace |
createNamespace(ModelProvider modelProvider,
Context context)
Creates namespace of correct type for a context.
|
void |
flushAll()
Flush of all sessions (core, org, human,...
|
void |
flushPlugins()
Flush of sessions for all plugins (core, human, org,...)
|
CompiledContext |
getCompiled()
Returns compiled context.
|
CompiledContext |
getCompiled(String moduleName)
Returns compiled context of the module
|
ComponentService |
getComponentService()
Returns component service
|
long |
getContextId()
Returns the context id.
|
RuntimeToPersistentConverter |
getConverter()
Returns converter.
|
String |
getEvaluationLevel()
Returns evaluation level.
|
ExecutionTrace |
getExecutionTrace() |
Handle |
getHandle(ValueHolder valueHolder)
Returns a serializable handle for the given value-holder.
|
com.whitestein.lsps.model.ContextModelElement |
getModelElement()
Returns the corresponding context model element.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
ModelProvider |
getModelProvider()
Returns the provided model provider
|
Namespace |
getNamespace()
Returns namespace associated with this context.
|
protected NamespaceModel |
getNamespaceModel()
Returns namespace model for this context.
|
ExecutionContext |
getParentContext()
Returns the parent execution context or null if it does not exist.
|
String |
getPath()
Returns the full path to this context as a string.
|
QID |
getPathQID()
Returns the full path to this context as a QID.
|
ProcessInstance |
getProcessInstance()
Returns the process instance.
|
com.whitestein.lsps.model.ProcessModel |
getProcessModel()
Returns the process model.
|
String |
getProcessPath()
Returns the full path to model element that is bound to this context.
|
QID |
getProcessPathQID()
Returns the full path to model element that is bound to this context.
|
ValueHolder |
getValueHolder(Handle handle)
Returns a value-holder for the given handle.
|
static ExecutionContextImpl |
modelContext(Module model,
ModelInstanceType modelInstanceType,
ModelProvider modelProvider)
Returns an execution context for the given model.
|
void |
setCompiled(CompiledContext compiledContext)
Sets compiled context.
|
getStackTrace, getStackTraceInfo, getVariableValue, getVariableValue, resolveVariableNamespace, resolveVariableNamespace, setVariableValue, setVariableValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInLevel
public ExecutionContextImpl(ModelProvider modelProvider, ModelInstance modelInstance, Namespace namespace)
ExecutionContextImpl
.modelProvider
- modelInstance
- namespace
- public ExecutionContextImpl(ModelProvider modelProvider, ModelInstance modelInstance, Namespace namespace, InterpreterStackTrace stackTrace)
ExecutionContextImpl
.modelProvider
- modelInstance
- namespace
- stackTrace
- public ExecutionContextImpl(Context context, ModelProvider modelProvider)
ExecutionContextImpl
.context
- modelProvider
- NullPointerException
- if context
or modelProvider
is nullpublic ExecutionContextImpl(Context context, ModelProvider modelProvider, InterpreterStackTrace stackTrace)
ExecutionContextImpl
.context
- modelProvider
- stackTrace
- NullPointerException
- if context
or modelProvider
is nullpublic static Namespace createNamespace(ModelProvider modelProvider, Context context)
modelProvider
- context
- public static ExecutionContextImpl modelContext(Module model, ModelInstanceType modelInstanceType, ModelProvider modelProvider)
model
- modelInstanceType
- modelProvider
- public Namespace getNamespace()
ExecutionContext
public ModelProvider getModelProvider()
public RuntimeToPersistentConverter getConverter()
ExecutionContext
protected NamespaceModel getNamespaceModel()
AbstractExecutionContext
getNamespaceModel
in class AbstractExecutionContext
public void addSignal(Object signal)
ExecutionContext
public com.whitestein.lsps.model.ProcessModel getProcessModel()
ExecutionContext
public ModelInstance getModelInstance()
ExecutionContext
public ProcessInstance getProcessInstance()
ExecutionContext
public long getContextId()
ExecutionContext
public String getEvaluationLevel()
public com.whitestein.lsps.model.ContextModelElement getModelElement()
ExecutionContext
public ExecutionContext getParentContext()
ExecutionContext
public Handle getHandle(ValueHolder valueHolder)
HandleResolver
HandleResolver.getValueHolder(Handle)
.valueHolder
- the value-holderpublic ValueHolder getValueHolder(Handle handle)
HandleResolver
handle
- the handlepublic QID getPathQID()
ExecutionContext
public String getPath()
ExecutionContext
public QID getProcessPathQID()
ExecutionContext
public String getProcessPath()
ExecutionContext
public void flushAll()
public void addExecutionTraceElement(ExecutionTraceElement ete)
TraceableExecution
ExecutionTrace
and
ExecutionTraceElement
.ete
- ExecutionTraceElement to be added.public void addExecutionTrace(ExecutionTrace et)
TraceableExecution
ExecutionTrace
and
ExecutionTraceElement
.et
- ExecutionTrace to be added.public ExecutionTrace getExecutionTrace()
ExecutionTrace
and
ExecutionTraceElement
.public ComponentService getComponentService()
ExecutionContext
public void flushPlugins()
public CompiledContext getCompiled()
ExecutionContext
public void setCompiled(CompiledContext compiledContext)
ExecutionContext
public CompiledContext getCompiled(String moduleName)
ExecutionContext
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.