Enum Reflection

java.lang.Object
java.lang.Enum<Reflection>
xmlparser.utils.Reflection
All Implemented Interfaces:
Serializable, Comparable<Reflection>

public enum Reflection extends Enum<Reflection>
  • Field Details

    • PRIMITIVE_TO_OBJECT

      public static final Map<Class<?>,Class<?>> PRIMITIVE_TO_OBJECT
  • Method Details

    • values

      public static Reflection[] 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

      public static Reflection valueOf(String name)
      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 name
      NullPointerException - 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

      public static String toEnumName(Enum o)
    • toEnumType

      public static Class<? extends Enum> toEnumType(Field field)
    • toFieldType

      public static Reflection.FieldType toFieldType(Field f)
    • toClassType

      public static Reflection.ClassType toClassType(Class<?> c, Interfaces.AccessSerializers s)
    • listFields

      public static List<Field> listFields(Class<?> type)
    • listFields

      public static List<Field> listFields(List<Field> fields, Class<?> type)
    • isSimple

      public static boolean isSimple(Class<?> c)
    • isList

      public static boolean isList(Class<?> c)
    • isSet

      public static boolean isSet(Class<?> c)
    • isMap

      public static boolean isMap(Class<?> c)
    • isWrapped

      public static boolean isWrapped(Field f)
    • toWrappedName

      public static String toWrappedName(Field f)
    • isAbstract

      public static boolean isAbstract(Field f)
    • findAbstractType

      public static Class<?> findAbstractType(XmlAbstractClass annotation, XmlElement node)
    • toName

      public static String toName(Class<?> o)
    • toName

      public static String toName(Field field)
    • toClassOfCollection

      public static Class<?> toClassOfCollection(Field f)
    • toClassOfMapKey

      public static Class<?> toClassOfMapKey(ParameterizedType type)
    • toClassOfMapValue

      public static Class<?> toClassOfMapValue(ParameterizedType type)
    • toObjectClass

      public static <T> Class<T> toObjectClass(Class<T> clazz)
    • invokeFieldDeserializer

      public static Object invokeFieldDeserializer(Field f, XmlElement element)
    • setField

      public static void setField(Field field, Object object, Object value)