return accessor;
}
protected JavaMethod getMutator(JSFGeneratorConfiguration configuration, PropertyBean propertyBean, final JavaField field) {
JavaMethod mutator =
new JavaMethod(propertyBean.getSetterName(),
new Argument(field.getName(), field.getType()));
mutator.setMethodBody(new MethodBody(mutator) {
@Override
public String toCode() {
return "this." + field.getName() + " = " + field.getName() + ";";
}
});
handleDeprecation(field.getType(), mutator);
mutator.addModifier(JavaModifier.PUBLIC);
return mutator;
}