public boolean containsBafBody(){
  Iterator<SootMethod> methodIt=methodIterator();
  while (methodIt.hasNext()) {
    SootMethod m=methodIt.next();
    if (m.hasActiveBody() && m.getActiveBody() instanceof soot.baf.BafBody) {
      return true;
    }
  }
  return false;
}

public boolean containsBafBody ( ) { Iterator < SootMethod > methodIt = methodIterator ( ) ; while ( methodIt . hasNext ( ) ) { SootMethod m = methodIt . next ( ) ; if ( m . hasActiveBody ( ) && m . getActiveBody ( ) instanceof soot . baf . BafBody ) { return true ; } } return false ; }
returns true if some method in this class has an active baf body .
