// assert prop.defaultValue==null;
MethodWriter writer = outline.createMethodWriter();
NameConverter nc = outline.parent().getModel().getNameConverter();
JBlock body;
// [RESULT]
// Type getXXX() {
// return value;
// }
JMethod $get = writer.declareMethod( ptype, getGetterMethod() );
String javadoc = prop.javadoc;
if(javadoc.length()==0)
javadoc = Messages.DEFAULT_GETTER_JAVADOC.format(nc.toVariableName(prop.getName(true)));
writer.javadoc().append(javadoc);
$get.body()._return(ref());
// [RESULT]
// void setXXX( Type value ) {
// this.value = value;
// }
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))));
}