private ArrayList<JavaField> fields;
@Override
public List getDeclaredFields() {
if (fields == null) {
StaticFieldEntry staticFields[] = javaClass.getStaticFields();
InstanceFieldEntry instanceFields[] = javaClass.getInstanceFields();
fields = new ArrayList<JavaField>(staticFields.length + instanceFields.length);
for (StaticFieldEntry f : staticFields) {
fields.add(new StaticFieldImpl(f));