public final class VMStackTraceElement extends java.lang.Object implements IVMStackTraceElement
Constructor and Description |
---|
VMStackTraceElement(java.lang.String moduleName,
java.lang.String operationName,
java.lang.String unitQName,
int lineNumber)
Creates a stack trace element representing the specified execution
point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
int |
hashCode() |
java.lang.String |
toString() |
public VMStackTraceElement(java.lang.String moduleName, java.lang.String operationName, java.lang.String unitQName, int lineNumber)
java.lang.NullPointerException
- if fModuleName or
fOperationName is nullpublic java.lang.String getUnitName()
IVMStackTraceElement
getUnitName
in interface IVMStackTraceElement
public int getLineNumber()
IVMStackTraceElement
getLineNumber
in interface IVMStackTraceElement
public java.lang.String getModuleName()
IVMStackTraceElement
getModuleName
in interface IVMStackTraceElement
null
, in case the executed code
is not part of any module, for instance a condition of a top
level modeltype
element.public java.lang.String getOperationName()
IVMStackTraceElement
Remark: It's possible that the name does not refer to an operation explicitly defined in OCL, but rather to a synthesized one.
getOperationName
in interface IVMStackTraceElement
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object