Method Summary |
|
public static Class | findClassOfType(URL directoryUris, Class type) Searches the contents of the directoryUri and returns the first
Class found that is of the given type .
Parameters: directoryUris - the URIs to search, ie. |
public static List | getAllMethods(Class clazz) Loads all methods from the given clazz (this includes
all super class methods, public, private and protected).
Parameters: clazz - the class to retrieve the methods. |
public static ClassLoader | getClassLoader() Gets the appropriate class loader instance. |
public static List | getInterfaces(String className) Retrieves all interfaces for the given className (including className
itself, assuming it's an interface as well). |
public static List | getInterfaces(Class clazz) Retrieves all interfaces for the given clazz (including clazz
itself, assuming it's an interface as well). |
public static Class[] | getInterfacesReversed(String className) Gets the interfaces for the given className in reverse order. |
protected static Class | getPrimitiveClass(String name, ClassLoader loader) Returns the type class name for a Java primitive.
Parameters: name - a String with the name of the type Parameters: loader - the loader to use. |
public static Collection | getStaticFieldValues(Class clazz, Class type) Returns a collection of all static fields values for the given
clazz and type of field. |
public static boolean | isClassOfTypePresent(URL directoryUris, Class type) Indicates whether or not a class of the given type
is present in one of the given directoryUris .
Parameters: directoryUris - the URIs to search, ie. |
protected static boolean | isPrimitiveType(String name)
Checks if a given type name is a Java primitive type. |
public static Class | loadClass(String className) Loads and returns the class having the className. |
public static Object | newInstance(String className) Creates a new instance of the class having the given className .
Parameters: className - the name of the class to instantiate. |
public static Object | newInstance(Class type) Creates a new instance of the class given the type .
Parameters: type - the type from which to instantiate the new instance. |