|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.lang.ClassUtilities
public class ClassUtilities
A utility class that contains useful methods dealing with classes.
Constructor Summary | |
---|---|
protected |
ClassUtilities()
Since this class is a static utility class, its sole constructor is protected. |
Method Summary | |
---|---|
static java.lang.String |
simpleClassName(java.lang.Class clazz)
Return the simple class name for the given class object. |
static java.lang.String |
simpleClassName(java.lang.String className)
Return the simple class name for the given qualified class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ClassUtilities()
Method Detail |
---|
public static final java.lang.String simpleClassName(java.lang.Class clazz)
'.'
or '$'
.
clazz
- The class object for which to compute the simple class
name
java.lang.NullPointerException
- if clazz
is null
java.lang.IllegalArgumentException
- if clazz
is a class
object for a primitive or array typepublic static final java.lang.String simpleClassName(java.lang.String className)
'.'
or '$'
. Warning! This method
doesn't check if the argument name is a valid class name!
className
- The fully qualified class name
java.lang.NullPointerException
- if className
is
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |