@Override public void visit(MethodReferenceExpr n, final A arg) { visitComment(n.getComment(), arg); if (n.getTypeArguments() != null) { for (final Type t : n.getTypeArguments()) { t.accept(this, arg); } } if (n.getScope() != null) { n.getScope().accept(this, arg); } }
@Override public Boolean visit(MethodReferenceExpr n1, Node arg) { MethodReferenceExpr n2 = (MethodReferenceExpr) arg; if (!nodeEquals(n1.getScope(), n2.getScope())) { return Boolean.FALSE; } if (!nodesEquals(n1.getTypeParameters(), n2.getTypeParameters())) { return Boolean.FALSE; } if (!objEquals(n1.getIdentifier(), n2.getIdentifier())) { return Boolean.FALSE; } return Boolean.TRUE; }