@Override public void visit(final ForeachStmt n, final A arg) { visitComment(n.getComment(), arg); n.getVariable().accept(this, arg); n.getIterable().accept(this, arg); n.getBody().accept(this, arg); }
@Override public Boolean visit(final ForeachStmt n1, final Node arg) { final ForeachStmt n2 = (ForeachStmt) arg; if (!nodeEquals(n1.getVariable(), n2.getVariable())) { return Boolean.FALSE; } if (!nodeEquals(n1.getIterable(), n2.getIterable())) { return Boolean.FALSE; } if (!nodeEquals(n1.getBody(), n2.getBody())) { return Boolean.FALSE; } return Boolean.TRUE; }