de.projectory.koivima.core
Class ExecutionContext
java.lang.Object
de.projectory.koivima.core.ExecutionContext
- Direct Known Subclasses:
- AddingContext
public class ExecutionContext
- extends java.lang.Object
Each block of code is run in an ExecutionContext.
This context provides the necassary environment:
stack, data storage, ...
Method Summary |
ExecutionContext |
copy()
Returns a copy of this execution context. |
void |
onError(java.lang.String message)
Called if an error occurs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataStack
public DataStack dataStack
codeBlock
public CodeBlock codeBlock
ExecutionContext
public ExecutionContext()
ExecutionContext
protected ExecutionContext(DataStack dataStack,
CodeBlock codeBlock)
- Only used for internal purposes (making a copy of this object).
copy
public ExecutionContext copy()
- Returns a copy of this execution context.
This is actually a shallow copy.
All fields of this object are being duplicated, but the data remains the same.
onError
public void onError(java.lang.String message)
- Called if an error occurs.