code: 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()));
      }
      mg.returnValue();
      mg.endMethod();
    }
docs: Generates a getter that get the value by directly accessing the class field.
  @param field The reflection field object.