code: public List<DOField> getFields() {
  	List<DOField> ret = new ArrayList<DOField>();
  		DOType typ = this;
  		while(typ != null) {
  			ret.addAll(typ.getDeclaredFields());
  			typ = typ.getSuperType();
  		}
  		return ret;
  	}
docs: Answer the field- (attribute) definitions declared by this type and all it's super types.
  @return a list of DOField