net.livesite.util
Class ClassName

java.lang.Object
  extended by net.livesite.util.ClassName

public class ClassName
extends Object

Provides access to a class' name information in a static context.

  System.out.print("This is printing from the '");
  System.out.print(ClassName.full());
  System.out.print("' class.");
 


Method Summary
static String full()
          Get the fully-qualified class name such as: "java.lang.Object".
static String name()
          Get the short name such as: "Object".
static String packageName()
          Get the callers package name such as: "java.lang".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

full

public static String full()
Get the fully-qualified class name such as: "java.lang.Object".


name

public static String name()
Get the short name such as: "Object".


packageName

public static String packageName()
Get the callers package name such as: "java.lang".