return "\"" + value + "\"";
}
public Statement valueAccessorFor(final MetaClassMember member) {
if (member instanceof MetaField) {
final MetaField field = (MetaField) member;
if (!field.isPublic()) {
final MetaMethod getterMethod = GenUtil.findCaseInsensitiveMatch(field.getType(),
field.getDeclaringClass(), "get" + field.getName());
if (getterMethod != null) {
return loadVariable("a0").invoke(getterMethod);
}
else {
if (!context.isExposed(field)) {
PrivateAccessUtil.addPrivateAccessStubs(gwtTarget ? "jsni" : "reflection", context.getClassStructureBuilder(), field);
context.markExposed(field);
}
return Stmt.invokeStatic(context.getGeneratedBootstrapClass(), PrivateAccessUtil
.getPrivateFieldInjectorName(field),
loadVariable("a0"));
}
}
else {
return loadVariable("a0").loadField(field.getName());
}
}
else {
final MetaMethod method = (MetaMethod) member;
return loadVariable("a0").invoke(method);