{
addReference(referencedTypes, fieldType, ReferenceKind.USAGE);
}
fieldElement.setAttribute("type", fieldType);
TypedConstant value= field.getConstantValue();
if (value != null)
{
String constValue= null;
if (fieldType.equals("java.lang.String"))
{
constValue= ((CstString) value).getString().getString();
encodeString(fieldElement, constValue);
}
else
{
constValue= value.toHuman();
fieldElement.setAttribute("value", constValue);
}
}
processAccessFlags(field.getAccessFlags(), fieldElement);
classElement.addContent(fieldElement);