public abstract class CompiledContext extends CompiledNamespace implements ExecutionContext
Constructor and Description |
---|
CompiledContext(CompiledNamespace compiledNamespace)
Creates new instance.
|
CompiledContext(Namespace namespace)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addExecutionTrace(ExecutionTrace et)
Adds ExecutionTrace to the context.
|
void |
addExecutionTraceElement(ExecutionTraceElement e)
Adds ExecutionTraceElement to the context.
|
void |
addSignal(Object signal)
Adds a signal to the signal queue.
|
void |
flushAll()
Flush of all sessions (core, org, human,...
|
CompiledContext |
getCompiled()
Returns compiled context.
|
CompiledContext |
getCompiled(String moduleName)
Returns compiled context of the module
|
CompiledContext |
getCompiledContext()
Returns this compiled context.
|
long |
getContextId()
Returns the context id.
|
protected ExecutionContext |
getExecutionContext() |
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 model provider.
|
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.
|
protected abstract QID |
getQID() |
InterpreterStackTrace |
getStackTrace()
Returns the interpreter stack trace.
|
String[] |
getStackTraceInfo()
Returns the stack trace info from the interpreter stack trace.
|
ValueHolder |
getValueHolder(Handle handle)
Returns a value-holder for the given handle.
|
protected Namespace |
selectNamespace(Namespace aNamespace) |
void |
setCompiled(CompiledContext compiledContext)
Sets compiled context.
|
addVariable, addVariable, checkRollback, checkRollback, checkTypeAndCast, concat, createChildNamespace, createList, createList, createMap, createMap, createOperationHolder, createOperationHolder, createOperationHolder, createOperationHolder, createRecord, createRecord, createRecordByConstructor, createRecordByConstructor, createReference, createSet, createSet, get, get, getCompiledNamespace, getComponent, getComponent, getComponentService, getComponentServiceStat, getConstantValue, getConstantValue, getEvaluationLevel, getEvaluationLevel, getModuleVariableValue, getNamespace, getPropertySafe, getReferencedOperation, getReferencedOperation, getStaticVariableValue, getStaticVariableValue, getType, getType, getType, getVariableValue, getVariableValue, getVariableValue, in, isInstanceOf, like, nullsOrEquals, requireNonNull, resolveVariableNamespace, resolveVariableNamespace, setModuleVariableValue, setNamespace, setVariableValue, setVariableValue, special, toboolean, toboolean, toBoolean, toBoolean, toCompiled, toCompiled, toCompiled, toCompiledObject, toCompiledObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentService, getConverter, getEvaluationLevel, getInLevel, getNamespace, getProcessPath, getProcessPathQID, getVariableValue, getVariableValue, resolveVariableNamespace, resolveVariableNamespace, setVariableValue, setVariableValue
public CompiledContext(Namespace namespace)
namespace
- public CompiledContext(CompiledNamespace compiledNamespace)
compiledNamespace
- public CompiledContext getCompiledContext()
getCompiledContext
in class CompiledNamespace
public CompiledContext getCompiled()
ExecutionContext
getCompiled
in interface ExecutionContext
public void setCompiled(CompiledContext compiledContext)
ExecutionContext
setCompiled
in interface ExecutionContext
protected ExecutionContext getExecutionContext()
public ModelProvider getModelProvider()
ExecutionContext
getModelProvider
in interface ExecutionContext
public com.whitestein.lsps.model.ProcessModel getProcessModel()
ExecutionContext
getProcessModel
in interface ExecutionContext
protected abstract QID getQID()
protected Namespace selectNamespace(Namespace aNamespace)
selectNamespace
in class CompiledNamespace
public Handle getHandle(ValueHolder valueHolder)
HandleResolver
HandleResolver.getValueHolder(Handle)
.getHandle
in interface HandleResolver
valueHolder
- the value-holderpublic ValueHolder getValueHolder(Handle handle)
HandleResolver
getValueHolder
in interface HandleResolver
handle
- the handlepublic void addExecutionTraceElement(ExecutionTraceElement e)
TraceableExecution
ExecutionTrace
and
ExecutionTraceElement
.addExecutionTraceElement
in interface TraceableExecution
e
- ExecutionTraceElement to be added.public void addExecutionTrace(ExecutionTrace et)
TraceableExecution
ExecutionTrace
and
ExecutionTraceElement
.addExecutionTrace
in interface TraceableExecution
et
- ExecutionTrace to be added.public ExecutionTrace getExecutionTrace()
getExecutionTrace
in interface TraceableExecution
ExecutionTrace
and
ExecutionTraceElement
.public void addSignal(Object signal)
ExecutionContext
addSignal
in interface ExecutionContext
public com.whitestein.lsps.model.ContextModelElement getModelElement()
ExecutionContext
getModelElement
in interface ExecutionContext
public long getContextId()
ExecutionContext
getContextId
in interface ExecutionContext
public ExecutionContext getParentContext()
ExecutionContext
getParentContext
in interface ExecutionContext
public QID getPathQID()
ExecutionContext
getPathQID
in interface ExecutionContext
public String getPath()
ExecutionContext
getPath
in interface ExecutionContext
public ModelInstance getModelInstance()
ExecutionContext
getModelInstance
in interface ExecutionContext
public ProcessInstance getProcessInstance()
ExecutionContext
getProcessInstance
in interface ExecutionContext
public void flushAll()
ExecutionContext
flushAll
in interface ExecutionContext
public InterpreterStackTrace getStackTrace()
ExecutionContext
error exceptions
.
The method returns null
if the execution context is not a
JavaOperationExecutionContext
.
getStackTrace
in interface ExecutionContext
null
public String[] getStackTraceInfo()
ExecutionContext
Should be equivalent to
return getStackTrace() != null ? getStackTrace().getStackTraceInfo() : null;
getStackTraceInfo
in interface ExecutionContext
public CompiledContext getCompiled(String moduleName)
ExecutionContext
getCompiled
in interface ExecutionContext
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.