private void directGetter(Field field) {
GeneratorAdapter mg = new GeneratorAdapter(Opcodes.ACC_PUBLIC, getMethod(Object.class, "get", Object.class),
getterSignature(), new Type[0], classWriter);
// Simply access by field
// return ((classType)object).fieldName;
mg.loadArg(0);
mg.checkCast(Type.getType(field.getDeclaringClass()));
mg.getField(Type.getType(field.getDeclaringClass()), field.getName(), Type.getType(field.getType()));
if (field.getType().isPrimitive()) {
mg.valueOf(Type.getType(field.getType()));
}