|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.lang.Classes
public final class Classes
Utilities for dealing with classes.
| Method Summary | ||
|---|---|---|
static String |
name(Class<?> c)
Gets the name of the given class or null if the class is null. |
|
static Class<?> |
relativeClass(Class<?> scope,
String path)
Takes a Class and a relative path to a class and returns any class at that relative path. |
|
static
|
simpleName(Class<C> c)
Gets the name of a given class without the prefixed package path |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String name(Class<?> c)
c - The class
public static Class<?> relativeClass(Class<?> scope,
String path)
throws ClassNotFoundException
scope - The package to start atpath - The relative path to the class
ClassNotFoundExceptionpublic static <C> String simpleName(Class<C> c)
C - c - The class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||