182183184185186187188189190191192
Body body = method.getActiveBody(); Collection<Unit> uc = body.getUnits(); for (Unit u : uc) { if (u instanceof Stmt) { Stmt stmt = (Stmt)u; stmt.apply(this); if (stmt.containsInvokeExpr()) { createHotspotsFromInvokeExpr(stmt); } } }