jrowe.util
Class ClassUtil
java.lang.Object
|
+--jrowe.util.ClassUtil
- public class ClassUtil
- extends Object
Cool trick to do static stuff without static ref.
- Version:
- 1.0 MAR 09 2000 Initial version
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getSelf
public static Class getSelf()
- Returns the
Class
of the caller of this method.
- Returns:
- the
Class
of the caller of this method.
getSelf
public static Class getSelf(int level)
- Returns the
Class
of the caller of this method.
- Returns:
- the
Class
of the caller of this method.
splitPackageAndClass
public static String[] splitPackageAndClass(String str)
getClassName
public static String getClassName()
getMethodName
public static String getMethodName()
getAll
public static String[] getAll()
parseStackTraceLine
public static String[] parseStackTraceLine(String line)
selfTest
public static final boolean selfTest()
main
public static final void main(String[] args)