public class ReflectionUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
ReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
annotationPropertyValueAsJson(org.json.JSONStringer js,
Object propertyValue) |
static void |
annotationToJson(org.json.JSONStringer js,
Annotation ann) |
static org.json.JSONWriter |
classAccessorToJson(ClassAccessor accessor,
org.json.JSONStringer js) |
static Constructor |
getBestMatchConstructor(Class aClass,
Class... argClasses) |
static Constructor |
getConstructor(Class aClass,
Class... argClasses) |
static Constructor |
getConstructor(String className,
Class... argClasses) |
static InputStream |
getResourceAsStream(String resourceName) |
static Class |
loadClass(String className) |
static Object |
newInstance(Class aClass) |
static Object |
newInstance(Constructor constructor,
Object... args) |
static Object |
newInstance(String className) |
static org.json.JSONWriter |
propertyAccessorToJson(org.json.JSONStringer js,
PropertyAccessor accessor) |
public static final String copyright
public static final org.slf4j.Logger logger
public static Constructor getConstructor(String className, Class... argClasses)
public static Constructor getConstructor(Class aClass, Class... argClasses)
public static Constructor getBestMatchConstructor(Class aClass, Class... argClasses)
public static Object newInstance(Constructor constructor, Object... args)
public static InputStream getResourceAsStream(String resourceName)
public static org.json.JSONWriter propertyAccessorToJson(org.json.JSONStringer js, PropertyAccessor accessor)
public static void annotationToJson(org.json.JSONStringer js, Annotation ann)
public static void annotationPropertyValueAsJson(org.json.JSONStringer js, Object propertyValue)
public static org.json.JSONWriter classAccessorToJson(ClassAccessor accessor, org.json.JSONStringer js)