de.projectory.koivima.core
Class ExecutionContext

java.lang.Object
  extended by 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, ...


Field Summary
 CodeBlock codeBlock
           
 DataStack dataStack
           
 
Constructor Summary
  ExecutionContext()
           
protected ExecutionContext(DataStack dataStack, CodeBlock codeBlock)
          Only used for internal purposes (making a copy of this object).
 
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
 

Field Detail

dataStack

public DataStack dataStack

codeBlock

public CodeBlock codeBlock
Constructor Detail

ExecutionContext

public ExecutionContext()

ExecutionContext

protected ExecutionContext(DataStack dataStack,
                           CodeBlock codeBlock)
Only used for internal purposes (making a copy of this object).

Method Detail

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.