Examples of Pop


Examples of com.google.test.metric.method.op.stack.Pop

        for (Label label : labels) {
          if (label != dflt) {
            cyclomaticComplexity.add(getLineNumberForLable(label));
          }
        }
        block.addOp(new Pop(lineNumber, 1));
        block.tableSwitch(dflt, labels);
      }
    });
  }
View Full Code Here

Examples of com.google.test.metric.method.op.stack.Pop

        for (Label label : labels) {
          if (label != null) {
            cyclomaticComplexity.add(getLineNumberForLable(label));
          }
        }
        block.addOp(new Pop(lineNumber, 1));
        block.tableSwitch(dflt, labels);
      }
    });
  }
View Full Code Here

Examples of com.google.test.metric.method.op.stack.Pop

        break;
      case Opcodes.POP :
      case Opcodes.POP2 :
        recorder.add(new Runnable() {
          public void run() {
            block.addOp(new Pop(lineNumber, opcode - Opcodes.POP + 1));
          }
        });
        break;
      case Opcodes.DUP :
      case Opcodes.DUP_X1 :
View Full Code Here

Examples of com.google.test.metric.method.op.stack.Pop

        cyclomaticComplexity++;
      }
    }
    recorder.add(new Runnable() {
      public void run() {
        block.addOp(new Pop(lineNumber, 1));
        block.tableSwitch(dflt, labels);
      }
    });
  }
View Full Code Here

Examples of com.google.test.metric.method.op.stack.Pop

        cyclomaticComplexity++;
      }
    }
    recorder.add(new Runnable() {
      public void run() {
        block.addOp(new Pop(lineNumber, 1));
        block.tableSwitch(dflt, labels);
      }
    });
  }
View Full Code Here

Examples of com.google.test.metric.method.op.stack.Pop

        break;
      case Opcodes.POP :
      case Opcodes.POP2 :
        recorder.add(new Runnable() {
          public void run() {
            block.addOp(new Pop(lineNumber, opcode - Opcodes.POP + 1));
          }
        });
        break;
      case Opcodes.DUP :
      case Opcodes.DUP_X1 :
View Full Code Here

Examples of org.allspice.bytecode.instructions.Pop

    else {
      l.add(new Dup(TypeCode.VOID,v.getRefType())) ;
      l.add(new Load(v)) ;
      final TypeCode tc = TypeCode.getType(v.getType());
      l.add(new Dup(v.getRefType(),tc)) ;
      l.add(new Pop(tc)) ;
      l.add(new Increment(v,inc)) ;
      convert(context,context.getType(e),forwardType,l) ;
    }
  }
View Full Code Here

Examples of org.allspice.bytecode.instructions.Pop

      MethodDef md = new MethodDef(TypeName.INT,"getFoo",x,y) ;
      md = md.setStatic(true) ;
      md = md.addInstructions(
          new Load(x),
          new Load(y),
          new Pop(TypeCode.INT),
          new Return(TypeCode.INT)
          ) ;
      cd = cd.addMethod(md) ;
    }
    return cd ;
View Full Code Here

Examples of org.allspice.bytecode.instructions.Pop

      MethodDef md = new MethodDef(TypeName.LONG,"getFoo",x,y) ;
      md = md.setStatic(true) ;
      md = md.addInstructions(
          new Load(x),
          new Load(y),
          new Pop(TypeCode.LONG),
          new Return(TypeCode.LONG)
          ) ;
      cd = cd.addMethod(md) ;
    }
    return cd ;
View Full Code Here

Examples of org.apache.bcel.generic.POP

                if (target.equals(next)) {
                    int consumed = ii.consumeStack(methodGen.getConstantPool());
                    if (consumed != 1 && consumed != 2) {
                        throw new IllegalStateException();
                    }
                    head.swapInstruction(consumed == 1 ? new POP() : new POP2());
                }

            }
            if (i instanceof IFNULL || i instanceof IFNONNULL) {
                IfInstruction ii = (IfInstruction) i;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.