node.replaceWith(replacement);
}
protected void getJoinArgs(TupleExpr tupleExpr, List<TupleExpr> joinArgs) {
if (tupleExpr instanceof Join) {
Join join = (Join)tupleExpr;
getJoinArgs(join.getLeftArg(), joinArgs);
getJoinArgs(join.getRightArg(), joinArgs);
}
else {
joinArgs.add(tupleExpr);
}
}