public enum Reflection extends Enum<Reflection>
| Modifier and Type | Class and Description |
|---|---|
static class |
Reflection.ClassType |
| Modifier and Type | Method and Description |
|---|---|
static Field |
determineTypeOfFields(Class<?> clazz,
Object o,
List<Field> attributes,
List<Field> childNodes) |
static boolean |
isList(Class<?> c) |
static boolean |
isMap(Class<?> c) |
static boolean |
isSet(Class<?> c) |
static boolean |
isSimple(Class<?> c) |
static <T> Constructor<?> |
newNoArgsConstructor(Class<T> clazz,
Class<? super T> parent) |
static <T> T |
newObject(Class<T> clazz) |
static <T> T |
newObject(Class<T> clazz,
Class<? super T> parent) |
static Reflection.ClassType |
toClassType(Class<?> c,
Interfaces.AccessSerializers s) |
static <T> Constructor<T> |
toDeclaredNoArgsConstructor(Class<T> clazz) |
static String |
toName(Class<?> o) |
static String |
toName(Field field) |
static Reflection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Reflection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Reflection[] values()
for (Reflection c : Reflection.values()) System.out.println(c);
public static Reflection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Field determineTypeOfFields(Class<?> clazz, Object o, List<Field> attributes, List<Field> childNodes) throws IllegalAccessException
IllegalAccessExceptionpublic static Reflection.ClassType toClassType(Class<?> c, Interfaces.AccessSerializers s)
public static boolean isSimple(Class<?> c)
public static boolean isList(Class<?> c)
public static boolean isSet(Class<?> c)
public static boolean isMap(Class<?> c)
public static <T> T newObject(Class<T> clazz)
public static <T> Constructor<T> toDeclaredNoArgsConstructor(Class<T> clazz) throws NoSuchMethodException
NoSuchMethodExceptionpublic static <T> Constructor<?> newNoArgsConstructor(Class<T> clazz, Class<? super T> parent) throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2018. All rights reserved.