/** * Method that will collect all member (non-static) fields * that are either public, or have at least a single annotation * associated with them. * * @since 1.9 */ public void resolveFields() { LinkedHashMap<String,AnnotatedField> foundFields = new LinkedHashMap<String,AnnotatedField>(); _addFields(foundFields, _class); if (foundFields.isEmpty()) { _fields = Collections.emptyList(); } else { _fields = new ArrayList<AnnotatedField>(foundFields.size()); _fields.addAll(foundFields.values()); } }
_addFields(fields, parent); for (Field f : c.getDeclaredFields()) {
/** * Method that will collect all member (non-static) fields * that are either public, or have at least a single annotation * associated with them. * * @since 1.9 */ public void resolveFields() { LinkedHashMap<String,AnnotatedField> foundFields = new LinkedHashMap<String,AnnotatedField>(); _addFields(foundFields, _class); if (foundFields.isEmpty()) { _fields = Collections.emptyList(); } else { _fields = new ArrayList<AnnotatedField>(foundFields.size()); _fields.addAll(foundFields.values()); } }
_addFields(fields, parent); for (Field f : c.getDeclaredFields()) {
/** * Method that will collect all member (non-static) fields * that are either public, or have at least a single annotation * associated with them. * * @since 1.9 */ public void resolveFields() { LinkedHashMap<String,AnnotatedField> foundFields = new LinkedHashMap<String,AnnotatedField>(); _addFields(foundFields, _class); if (foundFields.isEmpty()) { _fields = Collections.emptyList(); } else { _fields = new ArrayList<AnnotatedField>(foundFields.size()); _fields.addAll(foundFields.values()); } }
/** * Method that will collect all member (non-static) fields * that are either public, or have at least a single annotation * associated with them. * * @since 1.9 */ public void resolveFields() { LinkedHashMap<String,AnnotatedField> foundFields = new LinkedHashMap<String,AnnotatedField>(); _addFields(foundFields, _class); if (foundFields.isEmpty()) { _fields = Collections.emptyList(); } else { _fields = new ArrayList<AnnotatedField>(foundFields.size()); _fields.addAll(foundFields.values()); } }
_addFields(foundFields, _class);
/** * Method that will collect all member (non-static) fields * that are either public, or have at least a single annotation * associated with them. * * @param collectIgnored Whether to collect list of ignored methods for later retrieval */ public void resolveFields(boolean collectIgnored) { _fields = new ArrayList<AnnotatedField>(); _addFields(_fields, _class); /* And last but not least: let's remove all fields that are * deemed to be ignorable after all annotations have been * properly collapsed. */ Iterator<AnnotatedField> it = _fields.iterator(); while (it.hasNext()) { AnnotatedField f = it.next(); if (_annotationIntrospector.isIgnorableField(f)) { it.remove(); if (collectIgnored) { _ignoredFields = ArrayBuilders.addToList(_ignoredFields, f); } } } }
_addFields(fields, parent); for (Field f : c.getDeclaredFields()) {
_addFields(fields, parent); for (Field f : c.getDeclaredFields()) {
_addFields(fields, parent); for (Field f : c.getDeclaredFields()) {
_addFields(fields, parent); for (Field f : c.getDeclaredFields()) {