org.eclipse.ocl.examples.debug.vm.utils
Class VMStackTraceBuilder

java.lang.Object
  extended by org.eclipse.ocl.examples.debug.vm.utils.VMStackTraceBuilder

public class VMStackTraceBuilder
extends java.lang.Object

Helps to build VM stack trace from a given state of OCL code execution.


Constructor Summary
VMStackTraceBuilder(IVMEvaluationEnvironment<?> evalEnv)
          Constructs stack trace builder for the given evaluation environment.
 
Method Summary
 java.util.List<VMStackTraceElement> buildStackTrace()
          Builds the stack trace corresponding to evaluation environments hierarchy associated with this builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMStackTraceBuilder

public VMStackTraceBuilder(@NonNull
                           IVMEvaluationEnvironment<?> evalEnv)
Constructs stack trace builder for the given evaluation environment.

Parameters:
evalEnv - the evaluation environment representing the top stack trace
astNodeIPOffset - explicit the AST node offset representing the current instruction pointer of execution in a OCL module
Method Detail

buildStackTrace

public java.util.List<VMStackTraceElement> buildStackTrace()
Builds the stack trace corresponding to evaluation environments hierarchy associated with this builder.

Returns:
list of VM stack elements