* @return map
*/
private Map mapFields(IClassItem[] fields, String[] prefs, String[] suffs, Set inclset, Set exclset) {
// check all fields for use as members
InsertionOrderedMap fieldmap = new InsertionOrderedMap();
for (int i = 0; i < fields.length; i++) {
IClassItem item = fields[i];
if ((item.getAccessFlags() & (Modifier.FINAL | Modifier.STATIC | Modifier.TRANSIENT)) == 0) {
// not final, static, or transient, so check if it should be used
String name = item.getName();
String memb = ValueCustom.memberNameFromField(name, prefs, suffs);
boolean use = true;
if (inclset != null) {
use = inclset.contains(memb.toLowerCase());
} else if (exclset != null) {
use = !exclset.contains(memb.toLowerCase());
}
if (use) {
fieldmap.put(memb, item);
}
}
}
return fieldmap;
}