source.println("FieldImpl field = null;");
JField[] fields = classType.getFields();
for (int i = 0; i < fields.length; i++) {
JField field = fields[i];
if (needReflect
|| field.getAnnotation(HasReflect.class) != null) {
if (field.isEnumConstant() == null)
source.println("field = new FieldImpl(this, \""
+ field.getName() + "\");");
else
source.println("field = new EnumConstantImpl(this, \""
+ field.getName() + "\", "
+ field.isEnumConstant().getOrdinal() + ");");
source.println("field.addModifierBits("
+ GeneratorHelper.AccessDefToInt(field) + "); ");
source
.println("field.setTypeName(\""
+ field.getType().getQualifiedSourceName()
+ "\");");
// GeneratorHelper.addMetaDatas("field", source, field);
if (this.reflectable.fieldAnnotations()
|| (field.getAnnotation(HasReflect.class) != null && field
.getAnnotation(HasReflect.class)
.annotation())) {
Annotation[] annotations = AnnotationsHelper
.getAnnotations(field);
GeneratorHelper.addAnnotations_AnnotationImpl(