initProperties();
initNestedTypes();
}
public FieldInfo addField(String name, int attrs, Type fieldType) {
PECustomMod fieldTypeWithMods = new PECustomMod(fieldType, null);
FieldInfo res = new FieldInfo(name, this, attrs, fieldTypeWithMods, null);
FieldInfo[] ms = new FieldInfo[fields.length + 1];
System.arraycopy(fields, 0, ms, 0, fields.length);
ms[ms.length - 1] = res;
fields = ms;