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(java.lang.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(java.lang.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.
|
java.lang.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.
|
java.lang.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, toCompiledObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentService, getConverter, getEvaluationLevel, getInLevel, getNamespace, getProcessPath, getProcessPathQID, getVariableValue, getVariableValue, resolveVariableNamespace, resolveVariableNamespace, setVariableValue, setVariableValuepublic CompiledContext(Namespace namespace)
namespace - public CompiledContext(CompiledNamespace compiledNamespace)
compiledNamespace - public CompiledContext getCompiledContext()
getCompiledContext in class CompiledNamespacepublic CompiledContext getCompiled()
ExecutionContextgetCompiled in interface ExecutionContextpublic void setCompiled(CompiledContext compiledContext)
ExecutionContextsetCompiled in interface ExecutionContextprotected ExecutionContext getExecutionContext()
public ModelProvider getModelProvider()
ExecutionContextgetModelProvider in interface ExecutionContextpublic com.whitestein.lsps.model.ProcessModel getProcessModel()
ExecutionContextgetProcessModel in interface ExecutionContextprotected abstract QID getQID()
protected Namespace selectNamespace(Namespace aNamespace)
selectNamespace in class CompiledNamespacepublic Handle getHandle(ValueHolder valueHolder)
HandleResolverHandleResolver.getValueHolder(Handle).getHandle in interface HandleResolvervalueHolder - the value-holderpublic ValueHolder getValueHolder(Handle handle)
HandleResolvergetValueHolder in interface HandleResolverhandle - the handlepublic void addExecutionTraceElement(ExecutionTraceElement e)
TraceableExecutionExecutionTrace and
ExecutionTraceElement.addExecutionTraceElement in interface TraceableExecutione - ExecutionTraceElement to be added.public void addExecutionTrace(ExecutionTrace et)
TraceableExecutionExecutionTrace and
ExecutionTraceElement.addExecutionTrace in interface TraceableExecutionet - ExecutionTrace to be added.public ExecutionTrace getExecutionTrace()
getExecutionTrace in interface TraceableExecutionExecutionTrace and
ExecutionTraceElement.public void addSignal(java.lang.Object signal)
ExecutionContextaddSignal in interface ExecutionContextpublic com.whitestein.lsps.model.ContextModelElement getModelElement()
ExecutionContextgetModelElement in interface ExecutionContextpublic long getContextId()
ExecutionContextgetContextId in interface ExecutionContextpublic ExecutionContext getParentContext()
ExecutionContextgetParentContext in interface ExecutionContextpublic QID getPathQID()
ExecutionContextgetPathQID in interface ExecutionContextpublic java.lang.String getPath()
ExecutionContextgetPath in interface ExecutionContextpublic ModelInstance getModelInstance()
ExecutionContextgetModelInstance in interface ExecutionContextpublic ProcessInstance getProcessInstance()
ExecutionContextgetProcessInstance in interface ExecutionContextpublic void flushAll()
ExecutionContextflushAll in interface ExecutionContextpublic InterpreterStackTrace getStackTrace()
ExecutionContexterror exceptions.
The method returns null if the execution context is not a
JavaOperationExecutionContext.
getStackTrace in interface ExecutionContextnullpublic java.lang.String[] getStackTraceInfo()
ExecutionContextShould be equivalent to
return getStackTrace() != null ? getStackTrace().getStackTraceInfo() : null;
getStackTraceInfo in interface ExecutionContextpublic CompiledContext getCompiled(java.lang.String moduleName)
ExecutionContextgetCompiled in interface ExecutionContextCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.