method.retrieveActiveBody());
// each statement in the unit in the class
for (Unit unit : cug) {
Stmt stmt = (Stmt) unit;
if (stmt.containsInvokeExpr()) {
InvokeExpr expr = stmt.getInvokeExpr();
final String invokedSignature = expr.getMethod()
.getSignature();
if (invokedSignature.equals(targetSignature)) {
// we have found an invocation of our target
// fetch the argument of the invocation to
// analyze
ValueBox box = expr.getArgBox(argnum);
list.add(box);
}
}
}
}