public enum Reflection extends Enum<Reflection>
| Modifier and Type | Class and Description |
|---|---|
static class |
Reflection.ClassType |
static class |
Reflection.FieldType |
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<?>,Class<?>> |
PRIMITIVE_TO_OBJECT |
| Modifier and Type | Method and Description |
|---|---|
static Field |
determineTypeOfFields(Class<?> clazz,
Object o,
List<Field> attributes,
List<Field> childNodes) |
static Class<?> |
findAbstractType(XmlAbstractClass annotation,
XmlElement node) |
static Object |
invokeFieldDeserializer(Field f,
XmlElement element) |
static boolean |
isAbstract(Field f) |
static boolean |
isList(Class<?> c) |
static boolean |
isMap(Class<?> c) |
static boolean |
isSet(Class<?> c) |
static boolean |
isSimple(Class<?> c) |
static boolean |
isWrapped(Field f) |
static List<Field> |
listFields(Class<?> type) |
static List<Field> |
listFields(List<Field> fields,
Class<?> type) |
static void |
setField(Field field,
Object object,
Object value) |
static Class<?> |
toClassOfCollection(Field f) |
static Class<?> |
toClassOfMapKey(ParameterizedType type) |
static Class<?> |
toClassOfMapValue(ParameterizedType type) |
static Reflection.ClassType |
toClassType(Class<?> c,
Interfaces.AccessSerializers s) |
static Reflection.FieldType |
toFieldType(Field f) |
static String |
toName(Class<?> o) |
static String |
toName(Field field) |
static <T> Class<T> |
toObjectClass(Class<T> clazz) |
static String |
toWrappedName(Field f) |
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.FieldType toFieldType(Field f)
public 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 boolean isWrapped(Field f)
public static boolean isAbstract(Field f)
public static Class<?> findAbstractType(XmlAbstractClass annotation, XmlElement node)
public static Class<?> toClassOfMapKey(ParameterizedType type)
public static Class<?> toClassOfMapValue(ParameterizedType type)
public static Object invokeFieldDeserializer(Field f, XmlElement element)
Copyright © 2019. All rights reserved.