public class Trace extends Object
Modifier and Type | Method and Description |
---|---|
static void |
BeginInit(Class clazz)
Notifies the tracer that the static initializers of a class are about
to be executed.
|
static void |
EndInit(Class clazz)
Notifies the tracer that the static initializers of a class have finished
being executed.
|
static void |
PrintStackTrace()
Prints a backtrace of the stack.
|
static void |
PrintStackTrace(String message)
Prints a backtrace of the stack, with a custom message.
|
static void |
TraceMethod(boolean printLineNumber,
Object object)
Prints the class, method and optionally the line number of the method that
called TraceMethod(), plus the custom object.
|
public static void BeginInit(Class clazz)
public static void EndInit(Class clazz)
public static void PrintStackTrace()
public static void PrintStackTrace(String message)
public static void TraceMethod(boolean printLineNumber, Object object)
printLineNumber
- indicate if the line number should be printed or
not. Note that depending on the VM, the line number can be available or
not.object
- an additional object that is printed at the end of the line© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.