public void print(CtMethod method){
  MethodInfo info=method.getMethodInfo2();
  ConstPool pool=info.getConstPool();
  CodeAttribute code=info.getCodeAttribute();
  if (code == null)   return;
  CodeIterator iterator=code.iterator();
  while (iterator.hasNext()) {
    int pos;
    try {
      pos=iterator.next();
    }
 catch (    BadBytecode e) {
      throw new RuntimeException(e);
    }
    stream.println(pos + ": " + instructionString(iterator,pos,pool));
  }
}

public void print ( CtMethod method ) { MethodInfo info = method . getMethodInfo2 ( ) ; ConstPool pool = info . getConstPool ( ) ; CodeAttribute code = info . getCodeAttribute ( ) ; if ( code == null ) return ; CodeIterator iterator = code . iterator ( ) ; while ( iterator . hasNext ( ) ) { int pos ; try { pos = iterator . next ( ) ; } catch ( BadBytecode e ) { throw new RuntimeException ( e ) ; } stream . println ( pos + ": " + instructionString ( iterator , pos , pool ) ) ; } }
prints the bytecode instructions of a given method .
