@Weight(value=VARIABLE) public class CallTrace extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
eol |
static java.lang.String |
EOL_LINUX
Default end-of-line for linux.
|
static java.lang.String |
EOL_WINDOWS
Default end-of-line for windows.
|
private boolean |
packed |
private static long |
serialVersionUID |
private byte[] |
stacktrace |
private java.lang.String |
threadDescriptor |
private static java.nio.charset.Charset |
UTF8 |
| Constructor and Description |
|---|
CallTrace()
The Constructor allows to create call trace history point for the called method.
|
CallTrace(boolean skipConstructors,
boolean pack,
java.lang.String eol)
The Constructor allows to create call trace history with defined end-of-line symbol and since needed stack item position.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getThreadDescriptor()
Get the descriptor of the thread where the object instance was created.
|
java.lang.String |
restoreStackTrace()
Restore stack trace as a string from inside data representation.
|
java.lang.String |
toString() |
private static final long serialVersionUID
private static final java.nio.charset.Charset UTF8
public static final java.lang.String EOL_LINUX
public static final java.lang.String EOL_WINDOWS
private final boolean packed
private final byte[] stacktrace
private final java.lang.String threadDescriptor
private final java.lang.String eol
public CallTrace()
EOL_LINUX@Weight(value=VARIABLE, comment="Depends on the call stack depth") public CallTrace(boolean skipConstructors, boolean pack, java.lang.String eol)
skipConstructors - flag to skip first calls from constructors in the stack.pack - flag shows that string data must be packed, false if should not be packedeol - string shows which end-of-line should be usedEOL_LINUX,
EOL_WINDOWSpublic java.lang.String getThreadDescriptor()
Thread.toString()public java.lang.String restoreStackTrace()
public java.lang.String toString()
toString in class java.lang.Object