sd.drawDefault("{");
}
} else if (er instanceof FieldDefRow) {
FieldDefRow fdr = (FieldDefRow)er;
Field f = fdr.getField();
FieldSignature fieldSig = null;
boolean displayGenerics = SystemFacade.getInstance().getPreferences().isSettingTrue(Settings.DISPLAY_GENERICS);
if (displayGenerics) {
SignatureAttribute signature = f.getAttributes().getSignatureAttribute();
if (signature != null) {
fieldSig = Signatures.getFieldSignature(signature.getSignatureString());
}
}
sd.drawIndent();
String access = f.getAccessString();
if (access.length() > 0) {
sd.drawKeyword(access + " ");
}
JavaType ret = f.getDescriptor().getReturn();
if (fieldSig == null) {
if (ret.isPrimitive()) {
sd.drawKeyword(ret.getType());
} else {
sd.drawDefault(ia.getShortName(ret.getType()));
}
sd.drawDefault(ret.getDimensions());
} else {
renderGenericJavaType(sd, ia, fieldSig.getType());
}
sd.drawDefault(" ");
sd.drawField(f.getName());
ConstantPoolInfo constant = f.getConstant();
if (constant != null) {
sd.drawDefault(" = ");
drawConstant(sd, constant);
}
sd.drawDefault(";");