Exemplo n.º 1
0
 @Override
 public void visitInsn(final int opcode) {
   if (opcode == Opcodes.DUP) {
     machine.gotDup();
     if (machine.skipInstruction()) return;
   }
   super.visitInsn(opcode);
 }
Exemplo n.º 2
0
 @Override
 public void visitTypeInsn(final int opcode, final String desc) {
   System.out.println(desc);
   if (opcode == Opcodes.NEW) {
     machine.gotNew(desc);
     if (machine.skipInstruction()) return;
   }
   super.visitTypeInsn(opcode, desc);
 }
Exemplo n.º 3
0
 @Override
 public void visitMethodInsn(
     final int opcode, final String owner, final String name, final String desc) {
   if (opcode == Opcodes.INVOKESPECIAL) {
     machine.gotInvokeSpecial(owner);
     if (machine.skipInstruction()) return;
   }
   super.visitMethodInsn(opcode, owner, name, desc);
 }
Exemplo n.º 4
0
 @Override
 public void visitFieldInsn(
     final int opcode, final String owner, final String name, final String desc) {
   if (opcode == Opcodes.PUTSTATIC) {
     machine.gotPutStatic(owner);
     if (machine.skipInstruction()) return;
   }
   super.visitFieldInsn(opcode, owner, name, desc);
 }
Exemplo n.º 5
0
 @Override
 public void visitMultiANewArrayInsn(final String desc, final int dims) {
   machine.gotSomethingWrong();
   super.visitMultiANewArrayInsn(desc, dims);
 }
Exemplo n.º 6
0
 @Override
 public void visitLookupSwitchInsn(final Label dflt, final int[] keys, final Label[] labels) {
   machine.gotSomethingWrong();
   super.visitLookupSwitchInsn(dflt, keys, labels);
 }
Exemplo n.º 7
0
 @Override
 public void visitTableSwitchInsn(
     final int min, final int max, final Label dflt, final Label[] labels) {
   machine.gotSomethingWrong();
   super.visitTableSwitchInsn(min, max, dflt, labels);
 }
Exemplo n.º 8
0
 @Override
 public void visitIincInsn(final int var, final int increment) {
   machine.gotSomethingWrong();
   super.visitIincInsn(var, increment);
 }
Exemplo n.º 9
0
 @Override
 public void visitLdcInsn(final Object cst) {
   machine.gotSomethingWrong();
   super.visitLdcInsn(cst);
 }
Exemplo n.º 10
0
 @Override
 public void visitJumpInsn(final int opcode, final Label label) {
   machine.gotSomethingWrong();
   super.visitJumpInsn(opcode, label);
 }
Exemplo n.º 11
0
 @Override
 public void visitVarInsn(final int opcode, final int var) {
   machine.gotSomethingWrong();
   super.visitVarInsn(opcode, var);
 }
Exemplo n.º 12
0
 @Override
 public void visitIntInsn(final int opcode, final int operand) {
   machine.gotSomethingWrong();
   super.visitIntInsn(opcode, operand);
 }