|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ckkloverdos.util.CallUtil
public final class CallUtil
Provides utility methods that reveal information regarding the call stack.
Method Summary | |
---|---|
static java.lang.String |
getCaller3Info()
|
static java.lang.String |
getCaller3ShortInfo()
|
static java.lang.StackTraceElement |
getCaller3StackInfo()
|
static java.lang.String |
getCallerCallerInfo()
Get information for the method and class calling the caller of the caller of this method. |
static java.lang.String |
getCallerCallerShortInfo()
|
static java.lang.StackTraceElement |
getCallerCallerStackInfo()
|
static java.lang.String |
getCallerInfo()
Get information for the method and class calling the caller of this method. |
static java.lang.String |
getCallerShortInfo()
|
static java.lang.StackTraceElement |
getCallerStackInfo()
|
static java.lang.String |
getStackInfo(int depth)
Returns class and method names information at a specific depth. |
static java.lang.String |
getStackShortInfo(int depth)
|
static java.lang.StackTraceElement[] |
getStackTrace()
|
static java.lang.StackTraceElement |
getStackTrace(int depth)
|
static java.lang.String |
getThisInfo()
Get information for the method and class calling this method. |
static java.lang.String |
getThisShortInfo()
|
static java.lang.StackTraceElement |
getThisStackInfo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getStackInfo(int depth)
UtilLib.getStackInfo(0)
from a method
foo
of class package.SomeClass
, a string
of the form package.SomeClass::foo
will be returned.
public static java.lang.StackTraceElement[] getStackTrace()
public static java.lang.StackTraceElement getStackTrace(int depth)
public static java.lang.StackTraceElement getThisStackInfo()
public static java.lang.StackTraceElement getCallerStackInfo()
public static java.lang.StackTraceElement getCallerCallerStackInfo()
public static java.lang.StackTraceElement getCaller3StackInfo()
public static java.lang.String getStackShortInfo(int depth)
public static java.lang.String getThisInfo()
getStackInfo(1 + 0)
.
public static java.lang.String getThisShortInfo()
public static java.lang.String getCallerInfo()
getStackInfo(1 + 1)
.
public static java.lang.String getCallerShortInfo()
public static java.lang.String getCallerCallerInfo()
getStackInfo(1 + 2)
.
public static java.lang.String getCallerCallerShortInfo()
public static java.lang.String getCaller3Info()
public static java.lang.String getCaller3ShortInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |