getopt-0.3

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

Method Summary
static String[] getAll()
           
static String getClassName()
           
static String getMethodName()
           
static Class getSelf()
          Returns the Class of the caller of this method.
static Class getSelf(int level)
          Returns the Class of the caller of this method.
static void main(String[] args)
           
static String[] parseStackTraceLine(String line)
           
static boolean selfTest()
           
static String[] splitPackageAndClass(String str)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

getopt-0.3