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

java.lang.Object
  extended by org.eclipse.emf.common.util.BasicDiagnostic
      extended by org.eclipse.ocl.examples.debug.vm.utils.ExecutionDiagnosticImpl
All Implemented Interfaces:
org.eclipse.emf.common.util.Diagnostic, org.eclipse.emf.common.util.DiagnosticChain, ExecutionDiagnostic

public class ExecutionDiagnosticImpl
extends org.eclipse.emf.common.util.BasicDiagnostic
implements ExecutionDiagnostic


Field Summary
static ExecutionDiagnosticImpl OK_INSTANCE
           
 
Fields inherited from class org.eclipse.emf.common.util.BasicDiagnostic
children, code, data, message, severity, source
 
Fields inherited from interface org.eclipse.ocl.examples.debug.vm.utils.ExecutionDiagnostic
EXCEPTION_THROWN, FATAL_ASSERTION, MODEL_PARAMETER_MISMATCH, SOURCE, TRANSFORMATION_LOAD_FAILED, USER_INTERRUPTED, VALIDATION
 
Fields inherited from interface org.eclipse.emf.common.util.Diagnostic
CANCEL, CANCEL_INSTANCE, ERROR, INFO, OK, WARNING
 
Constructor Summary
ExecutionDiagnosticImpl(int severity, int code, java.lang.String message)
           
ExecutionDiagnosticImpl(int severity, int code, java.lang.String message, java.lang.Object[] data)
           
 
Method Summary
 java.util.List<IVMStackTraceElement> getStackTrace()
          Gets the stack trace that resulted from interrupted execution either by user termination request or exception thrown
 void printStackTrace(java.io.PrintWriter writer)
          Prints the execution stack-trace (if available) of this diagnostic to the specified print writer.
 void setStackTrace(java.util.List<? extends IVMStackTraceElement> stackElements)
           
 
Methods inherited from class org.eclipse.emf.common.util.BasicDiagnostic
add, addAll, dataAsList, getChildren, getCode, getData, getException, getMessage, getSeverity, getSource, merge, recomputeSeverity, setCode, setSeverity, setSource, toDiagnostic, toDiagnostic, toIStatus, toIStatus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.util.Diagnostic
getChildren, getCode, getData, getException, getMessage, getSeverity, getSource
 

Field Detail

OK_INSTANCE

public static final ExecutionDiagnosticImpl OK_INSTANCE
Constructor Detail

ExecutionDiagnosticImpl

public ExecutionDiagnosticImpl(int severity,
                               int code,
                               java.lang.String message,
                               java.lang.Object[] data)

ExecutionDiagnosticImpl

public ExecutionDiagnosticImpl(int severity,
                               int code,
                               java.lang.String message)
Method Detail

getStackTrace

public java.util.List<IVMStackTraceElement> getStackTrace()
Gets the stack trace that resulted from interrupted execution either by user termination request or exception thrown

Specified by:
getStackTrace in interface ExecutionDiagnostic
Returns:
list of trace elements or an empty list

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Prints the execution stack-trace (if available) of this diagnostic to the specified print writer.

Specified by:
printStackTrace in interface ExecutionDiagnostic
Parameters:
writer - PrintWriter to use for output

setStackTrace

public void setStackTrace(java.util.List<? extends IVMStackTraceElement> stackElements)