|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.util.Which
public class Which
Which is a debug class that provides a stacktrace at runtime
Constructor Summary | |
---|---|
Which()
|
Method Summary | |
---|---|
static java.util.List<java.lang.StackTraceElement> |
fullstack()
returns a stack trace at the current point |
static java.lang.String |
main()
return the class that the main method was started with. |
static void |
main(java.lang.String[] args)
|
static void |
setMain()
For multithreaded applications that finish the main thread, call this method in the main() method. |
static java.util.List<java.lang.String> |
stack()
returns a stack trace at the current point, without package names and line numbers |
static java.lang.Object |
thisclass(java.lang.Object t)
short description of runtime class (with supertype if anonymous) |
static java.lang.String |
thread()
class that this thread was started with and the thread name |
static double |
usedMemory()
get the memory currently used as a double (in megabytes) rounded to two decimal digits. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Which()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static java.util.List<java.lang.StackTraceElement> fullstack()
public static java.util.List<java.lang.String> stack()
public static java.lang.String thread()
public static java.lang.String main()
FIXME: how can the calling class be determined when its main thread is. As a provisorical method, Which.setMain() is called in the main function. finished?
public static void setMain()
public static java.lang.Object thisclass(java.lang.Object t)
t
-
public static double usedMemory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |