class CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> {

  @Override
  public BDD visitCommunityMatchAny(CommunityMatchAny communityMatchAny, Arg arg) {
    return BDDRoute.factory.orAll(
        communityMatchAny.getExprs().stream()
            .map(expr -> expr.accept(this, arg))
            .collect(ImmutableList.toImmutableList()));
  }

}