Class GsonReflectionTool

java.lang.Object
io.datarouter.gson.GsonReflectionTool

public class GsonReflectionTool extends Object
  • Constructor Details

    • GsonReflectionTool

      public GsonReflectionTool()
  • Method Details

    • getDeclaredFieldsIncludingAncestors

      public static List<Field> getDeclaredFieldsIncludingAncestors(Class<?> clazz)
      This will return a list of all the fields declared in the given class and in its super types.
      Parameters:
      clazz - class from which the field list will be extracted.
      Returns:
      a list of the inherited declared Fields not including any declared field from YourClass.