|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.common.util.ClassUtil
@Immutable public final class ClassUtil
Static utilities for working with classes.
Method Summary | |
---|---|
static boolean |
isFullyQualifiedClassname(String classname)
Determine whether the supplied string represents a well-formed fully-qualified Java classname. |
static Class<?> |
loadClassStrict(String classname)
Loads the class using either the current thread's context class loader or, if that is null, the system class loader. |
static void |
makeAccessible(AccessibleObject object)
|
static String |
nonPackageQualifiedName(Class<?> clazz)
|
static String |
nonPackageQualifiedName(Object object)
|
static String |
toString(Object object,
int includeInheritedFieldDepth)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void makeAccessible(AccessibleObject object)
object
- public static String nonPackageQualifiedName(Class<?> clazz)
clazz
- A class.
public static String nonPackageQualifiedName(Object object)
object
- An object.
public static String toString(Object object, int includeInheritedFieldDepth)
object
- includeInheritedFieldDepth
-
public static boolean isFullyQualifiedClassname(String classname)
classname
-
public static Class<?> loadClassStrict(String classname) throws ClassNotFoundException
classname
- name of the class to load
ClassNotFoundException
- if the class could not be found
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |