JMethod $set = writer.declareMethod( codeModel.VOID, "set"+prop.getName(true) );
JVar $value = writer.addParameter( ptype, "value" );
body = $set.body();
body.assign(JExpr._this().ref(ref()),$value);
// setter always get the default javadoc. See issue #381
writer.javadoc().append(Messages.DEFAULT_SETTER_JAVADOC.format(nc.toVariableName(prop.getName(true))));
}
protected JType getType(Aspect aspect) {
return super.getType(aspect).boxify().getPrimitiveType();