public class OReflectionHelper extends Object
Constructor and Description |
---|
OReflectionHelper() |
Modifier and Type | Method and Description |
---|---|
static List<Class<?>> |
getClassesFor(Collection<String> classNames,
ClassLoader classLoader) |
static List<Class<?>> |
getClassesFor(String iPackageName,
ClassLoader iClassLoader) |
static List<Class<?>> |
getClassessOfInterface(String thePackage,
Class<?> theInterface,
ClassLoader iClassLoader)
Filters discovered classes to see if they implement a given interface.
|
static Class<?> |
getGenericMultivalueType(Field p)
Returns the generic class of multi-value objects.
|
static Type[] |
getGenericTypes(Class<?> iClass)
Returns the declared generic types of a class.
|
static boolean |
isJavaType(Class<?> clazz)
Checks if a class is a Java type: Map, Collection,arrays, Number (extensions and primitives),
String, Boolean..
|
public static List<Class<?>> getClassesFor(Collection<String> classNames, ClassLoader classLoader) throws ClassNotFoundException
ClassNotFoundException
public static List<Class<?>> getClassesFor(String iPackageName, ClassLoader iClassLoader) throws ClassNotFoundException
ClassNotFoundException
public static List<Class<?>> getClassessOfInterface(String thePackage, Class<?> theInterface, ClassLoader iClassLoader)
thePackage
- theInterface
- iClassLoader
- public static Type[] getGenericTypes(Class<?> iClass)
iClass
- Class to examinepublic static Class<?> getGenericMultivalueType(Field p)
p
- Field to examinepublic static boolean isJavaType(Class<?> clazz)
clazz
- Class> to examineCopyright © 2009–2020 OrientDB. All rights reserved.