Scope scope =
fieldAttrs.visibility == Visibility.PUBLIC ? Scope.PUBLIC :
fieldAttrs.visibility == Visibility.PROTECTED ? Scope.PROTECTED :
fieldAttrs.visibility == Visibility.PRIVATE ? Scope.PRIVATE :
Scope.PROTECTED ;
FieldDef fdef = new FieldDef(scope,fuinfo.getFullQualified(fdecl.type),fdecl.name,o == null ? null : o.o) ;
if (fieldAttrs.isStatic) {
fdef = fdef.setStatic(true) ;
}
if (fieldAttrs.isVolatile) {
fdef = fdef.setVolatile(true) ;
}
if (fieldAttrs.isTransient) {
fdef = fdef.setTransient(true) ;
}
if (fieldAttrs.isFinal) {
fdef = fdef.setFinal(true) ;
}
return fdef ;
}