org.eclipse.ocl.examples.debug.vm.utils
Interface IVMStackTraceElement

All Known Implementing Classes:
VMStackTraceElement

public interface IVMStackTraceElement

An element of the VM execution stack trace. The frame at the top of the stack represents the execution point at which the stack trace was generated. Typically, this is the point at which a forcible execution interruption occurred.

Since:
2.0
Noimplement:
This interface is not intended to be implemented by clients.

Method Summary
 int getLineNumber()
          Returns the line number of the source line containing the execution point represented by this stack trace element.
 java.lang.String getModuleName()
          Gets the name of the executed module.
 java.lang.String getOperationName()
          Gets the name of the operation associated with this trace element.
 java.lang.String getUnitName()
          Gets the name of the the unit containing the execution point.
 

Method Detail

getUnitName

java.lang.String getUnitName()
Gets the name of the the unit containing the execution point.

Returns:
the name string

getModuleName

java.lang.String getModuleName()
Gets the name of the executed module.

Returns:
the name string or null, in case the executed code is not part of any module, for instance a condition of a top level modeltype element.

getOperationName

java.lang.String getOperationName()
Gets the name of the operation associated with this trace element.

Remark:
It's possible that the name does not refer to an operation explicitly defined in OCL, but rather to a synthesized one.

Returns:
the name string

getLineNumber

int getLineNumber()
Returns the line number of the source line containing the execution point represented by this stack trace element.

Returns:
the line number of the source line containing the execution point represented by this stack trace element, or a negative number if this information is unavailable.