|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sodius.mdw.core.util.ClassUtils
public final class ClassUtils
Operations on Class.
This class cannot be instantiated or subclassed by clients.
| Method Summary | |
|---|---|
static String |
getPackageName(Class<?> clazz)
Gets the package name of a Class. |
static String |
getPackageName(String className)
Gets the package name from a String. |
static String |
getSimpleName(Class<?> clazz)
Gets the class name minus the package name from a Class. |
static String |
getSimpleName(String className)
Gets the class name minus the package name from a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getSimpleName(Class<?> clazz)
Class.
clazz - the class to get the package name for.
public static String getSimpleName(String className)
String.
The string passed in is assumed to be a class name - it is not checked.
className - the className to get the package name for.
public static String getPackageName(Class<?> clazz)
Class.
clazz - the class to get the package name for.
public static String getPackageName(String className)
String.
The string passed in is assumed to be a class name - it is not checked. If the class is unpackaged, return an empty string.
className - the className to get the package name for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||