|
||||||||||
| 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 java.lang.String |
name(java.lang.Class<?> c)
Gets the name of the given class or null if the class is null. |
|
static java.lang.Class<?> |
relativeClass(java.lang.Class<?> scope,
java.lang.String path)
Takes a Class and a relative path to a class and returns any class at that relative path. |
|
static
|
resolveClass(java.lang.String className)
|
|
static
|
simpleName(java.lang.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 java.lang.String name(java.lang.Class<?> c)
c - The class
public static java.lang.Class<?> relativeClass(java.lang.Class<?> scope,
java.lang.String path)
throws java.lang.ClassNotFoundException
scope - The package to start atpath - The relative path to the class
java.lang.ClassNotFoundExceptionpublic static <T> java.lang.Class<T> resolveClass(java.lang.String className)
T - class typeclassName - Class to resolve
public static <C> java.lang.String simpleName(java.lang.Class<C> c)
C - c - The class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||