ga.returnValue();
ga.endMethod();
}
mv = cv.visitMethod(ACC_PUBLIC, "getF", "()I", null, null);
if (mv != null) {
Type bean = Type.getType("Lpkg/Bean;");
Method m = Method.getMethod("int getF()");
GeneratorAdapter ga = new GeneratorAdapter(ACC_PUBLIC, m, mv);
ga.visitCode();
ga.loadThis();
ga.getField(bean, "f", Type.INT_TYPE);
ga.returnValue();
ga.endMethod();
}
mv = cv.visitMethod(ACC_PUBLIC, "setF", "(I)V", null, null);
if (mv != null) {
Type bean = Type.getType("Lpkg/Bean;");
Method m = Method.getMethod("void setF(int)");
GeneratorAdapter ga = new GeneratorAdapter(ACC_PUBLIC, m, mv);
ga.visitCode();
ga.loadThis();
ga.loadArg(0);
ga.putField(bean, "f", Type.INT_TYPE);
ga.returnValue();
ga.endMethod();
}
mv = cv.visitMethod(ACC_PUBLIC, "checkAndSetF", "(I)V", null, null);
if (mv != null) {
Type bean = Type.getType("Lpkg/Bean;");
Method m = Method.getMethod("void checkAndSetF(int)");
GeneratorAdapter ga = new GeneratorAdapter(ACC_PUBLIC, m, mv);
ga.visitCode();
ga.loadArg(0);
Label label = new Label();