cf.addField("_stringValue", String.class);
MethodSignature setStringValue =
new MethodSignature(void.class, "setStringValue", new Class[] { String.class }, null);
cf.addMethod(Modifier.PUBLIC, setStringValue, "_stringValue = $1;");
MethodSignature getStringValue =
new MethodSignature(String.class, "getStringValue", null, null);
cf.addMethod(Modifier.PUBLIC, getStringValue, "return _stringValue;");