コード例 #1
0
 @Override
 protected void onMethodExit(int opcode) {
   // TODO Auto-generated method stub
   super.onMethodExit(opcode);
   mv.visitVarInsn(ALOAD, 0);
   mv.visitMethodInsn(INVOKESPECIAL, "org/cerberus/test/CerberusTestRunner", "setUp", "()V");
 }
コード例 #2
0
  @Override
  public void visitFieldInsn(int opcode, String owner, String name, String desc) {

    if (name.equals("solo") && owner.equals("org/cerberus/test/CerberusTestRunner")) {
      owner = "org/cerberus/test/CerberusRunner_" + JavaCompileInfo.index;
    }

    super.visitFieldInsn(opcode, owner, name, desc);
  }