@Test public void testVisitCommunitySetDifference() { CommunitySetDifference csd = new CommunitySetDifference( new InputCommunities(), new CommunityMatchRegex(ColonSeparatedRendering.instance(), "^20:")); Set<CommunityVar> result = _varCollector.visitCommunitySetDifference(csd, _baseConfig); assertEquals(ImmutableSet.of(), result); }
@Override public Set<CommunityVar> visitCommunitySetDifference( CommunitySetDifference communitySetDifference, Configuration arg) { Set<CommunityVar> s1 = communitySetDifference.getInitial().accept(this, arg); if (s1.isEmpty()) { return s1; } else { throw new BatfishException("Community set differences are not supported"); } }
SetCommunitiesVarCollector implements CommunitySetExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetDifference( CommunitySetDifference communitySetDifference, Configuration arg) { Set<CommunityVar> s1 = communitySetDifference.getInitial().accept(this, arg); if (s1.isEmpty()) { return s1; } else { throw new BatfishException("Community set differences are not supported"); } } }
SetCommunitiesVarCollector implements CommunitySetExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetDifference( CommunitySetDifference communitySetDifference, Configuration arg) { Set<CommunityVar> s1 = communitySetDifference.getInitial().accept(this, arg); if (s1.isEmpty()) { return s1; } else { throw new BatfishException("Community set differences are not supported"); } }  }
SetCommunitiesVarCollector implements CommunitySetExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetDifference( CommunitySetDifference communitySetDifference, Configuration arg) { Set<CommunityVar> s1 = communitySetDifference.getInitial().accept(this, arg); if (s1.isEmpty()) { return s1; } else { throw new BatfishException("Community set differences are not supported"); } }  @Override Set<CommunityVar> visitCommunityExprsSet(
      CommunityExprsSet communityExprsSet, Configuration arg); @Override Set<CommunityVar> visitCommunitySetDifference(
      CommunitySetDifference communitySetDifference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetExprReference(
      CommunitySetExprReference communitySetExprReference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetReference(
      CommunitySetReference communitySetReference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetUnion(
      CommunitySetUnion communitySetUnion, Configuration arg); @Override Set<CommunityVar> visitInputCommunities(
      InputCommunities inputCommunities, Configuration arg); @Override Set<CommunityVar> visitLiteralCommunitySet(
      LiteralCommunitySet literalCommunitySet, Configuration arg); }
SetCommunitiesVarCollector implements CommunitySetExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetDifference( CommunitySetDifference communitySetDifference, Configuration arg) { Set<CommunityVar> s1 = communitySetDifference.getInitial().accept(this, arg); if (s1.isEmpty()) { return s1; } else { throw new BatfishException("Community set differences are not supported"); } }  @Override Set<CommunityVar> visitCommunityExprsSet(
      CommunityExprsSet communityExprsSet, Configuration arg); @Override Set<CommunityVar> visitCommunitySetDifference(
      CommunitySetDifference communitySetDifference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetExprReference(
      CommunitySetExprReference communitySetExprReference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetReference(
      CommunitySetReference communitySetReference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetUnion(
      CommunitySetUnion communitySetUnion, Configuration arg); @Override Set<CommunityVar> visitInputCommunities(
      InputCommunities inputCommunities, Configuration arg); @Override Set<CommunityVar> visitLiteralCommunitySet(
      LiteralCommunitySet literalCommunitySet, Configuration arg);  }