public class ReflectUtils extends Object
| Modifier | Constructor and Description |
|---|---|
private |
ReflectUtils()
Instantiates a new reflect utils.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
classForName(String className,
ClassLoader classLoader)
Loads class with className using classLoader.
|
static Type[] |
getTypeArguments(Field property)
Gets the type arguments.
|
static boolean |
hasInterface(Class<?> has,
Class<?> in)
Checks for interface "has" in class "in".
|
static boolean |
hasSuperClass(Class<?> has,
Class<?> in)
Checks for super "has" in class "in".
|
static boolean |
isTransientOrStatic(Field field) |
static Class<?> |
stripEnhancerClass(Class<?> c)
Strip enhancer class.
|
public static boolean hasInterface(Class<?> has, Class<?> in)
has - the hasin - the inpublic static Type[] getTypeArguments(Field property)
property - the propertypublic static boolean hasSuperClass(Class<?> has, Class<?> in)
has - the hasin - the inpublic static Class<?> classForName(String className, ClassLoader classLoader)
className - the class nameclassLoader - the class loaderpublic static Class<?> stripEnhancerClass(Class<?> c)
c - the cpublic static boolean isTransientOrStatic(Field field)
Copyright © 2015. All Rights Reserved.