String capitalized = PlasticInternalUtils.capitalize(propertyName);
if (accessType != PropertyAccessType.WRITE_ONLY)
{
introduceMethod(new MethodDescription(getTypeName(), "get" + capitalized, null)).changeImplementation(
new InstructionBuilderCallback()
{
public void doBuild(InstructionBuilder builder)
{
builder.loadThis().getField(className, node.name, getTypeName()).returnResult();
}
});
}
if (accessType != PropertyAccessType.READ_ONLY)
{
introduceMethod(new MethodDescription("void", "set" + capitalized, getTypeName()))
.changeImplementation(new InstructionBuilderCallback()
{
public void doBuild(InstructionBuilder builder)
{
builder.loadThis().loadArgument(0);