code: private void getFields(ArrayList<JField> fieldList)
    {
      for (JField field : getDeclaredFields()) {
        if (! fieldList.contains(field))
          fieldList.add(field);
      }
  
      if (getSuperClass() != null) {
        for (JField field : getSuperClass().getFields()) {
          if (! fieldList.contains(field))
            fieldList.add(field);
        }
      }
    }
docs: Returns all the fields