Package com.forgeessentials.data.api.SaveableObject

Examples of com.forgeessentials.data.api.SaveableObject.SaveableField


    Class<?> currentType = type;
    Class<?> tempType;
    Type aTempType;
    ClassContainer tempContainer;
    SaveableField info;

    HashSet<String> overrides = new HashSet<String>();

    // Iterate through this class and superclass's and get saveable fields
    do
    {
      // Locate all members that are saveable.
      for (Field f : currentType.getDeclaredFields())
      {
        if (overrides.contains(f.getName()))
        {
          overrides.remove(f.getName());
          continue;
        }

        // if its a saveable field
        if (f.isAnnotationPresent(SaveableField.class))
        {
          info = f.getAnnotation(SaveableField.class);

          // register ignoire classes....
          if (info != null && !info.overrideParent().isEmpty())
          {
            overrides.add(info.overrideParent());
          }

          tempType = f.getType();
          aTempType = f.getGenericType();
          if (aTempType instanceof ParameterizedType)
View Full Code Here

TOP

Related Classes of com.forgeessentials.data.api.SaveableObject.SaveableField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.