@Test public void visitVisits() { ExpressionVisitor visitor = mock(ExpressionVisitor.class); agg.visit(visitor); verify(visitor).visit(agg); }
public void visit(ExpressionVisitor visitor) { visitor.visit(this); }
Aggregate implements Expression { public void visit(ExpressionVisitor visitor) { visitor.visit(this); } }
Aggregate implements Expression { public void visit(ExpressionVisitor visitor) { visitor.visit(this); } Aggregate(Class<T> type,
                   Foldable<T> function,
                   List<Expression> expressions); }
Aggregate implements Expression { public void visit(ExpressionVisitor visitor) { visitor.visit(this); } Aggregate(Class<T> type,
                   Foldable<T> function,
                   List<Expression> expressions); void visit(ExpressionVisitor visitor); Class<T> typeConstraint(); Iterable<Expression> children(); int compareTo(Expression e); boolean equals(Object o); int hashCode(); }
Aggregate implements Expression { public void visit(ExpressionVisitor visitor) { visitor.visit(this); } Aggregate(Class<T> type,
                   Foldable<T> function,
                   List<Expression> expressions); void visit(ExpressionVisitor visitor); Class<T> typeConstraint(); Iterable<Expression> children(); int compareTo(Expression e); boolean equals(Object o); int hashCode(); final Class<T> type; final Foldable<T> function; final List<Expression> expressions; final int order; }