Package xmlparser.utils
Enum Reflection
- All Implemented Interfaces:
Serializable,Comparable<Reflection>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Fieldstatic Class<?>findAbstractType(XmlAbstractClass annotation, XmlElement node) static ObjectinvokeFieldDeserializer(Field f, XmlElement element) static booleanisAbstract(Field f) static booleanstatic booleanstatic booleanstatic booleanstatic booleanlistFields(Class<?> type) listFields(List<Field> fields, Class<?> type) static voidstatic Class<?>static Class<?>static Class<?>static Reflection.ClassTypetoClassType(Class<?> c, Interfaces.AccessSerializers s) static StringtoEnumName(Enum o) toEnumType(Field field) static Reflection.FieldTypetoFieldType(Field f) static Stringstatic Stringstatic <T> Class<T>toObjectClass(Class<T> clazz) static Stringstatic ReflectionReturns 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.
-
Field Details
-
PRIMITIVE_TO_OBJECT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
determineTypeOfFields
public static Field determineTypeOfFields(Class<?> clazz, Object o, List<Field> attributes, List<Field> childNodes) throws IllegalAccessException - Throws:
IllegalAccessException
-
toEnumName
-
toEnumType
-
toFieldType
-
toClassType
-
listFields
-
listFields
-
isSimple
-
isList
-
isSet
-
isMap
-
isWrapped
-
toWrappedName
-
isAbstract
-
findAbstractType
-
toName
-
toName
-
toClassOfCollection
-
toClassOfMapKey
-
toClassOfMapValue
-
toObjectClass
-
invokeFieldDeserializer
-
setField
-