@Test public void testVisitCommunityIn() { CommunityIn ci = new CommunityIn( new LiteralCommunitySet( CommunitySet.of( StandardCommunity.parse("20:30"), StandardCommunity.parse("21:30")))); BDD result = _communityMatchExprToBDD.visitCommunityIn(ci, _arg); CommunityVar cvar1 = CommunityVar.from(StandardCommunity.parse("20:30")); CommunityVar cvar2 = CommunityVar.from(StandardCommunity.parse("21:30")); assertEquals(cvarToBDD(cvar1).or(cvarToBDD(cvar2)), result); }
@Override public BDD visitCommunityIn(CommunityIn communityIn, Arg arg) { return communityIn.getCommunitySetExpr().accept(new CommunitySetExprToBDD(), arg); }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIn(CommunityIn communityIn, Arg arg) { return communityIn.getCommunitySetExpr().accept(new CommunitySetExprToBDD(), arg); } }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIn(CommunityIn communityIn, Arg arg) { return communityIn.getCommunitySetExpr().accept(new CommunitySetExprToBDD(), arg); }  }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIn(CommunityIn communityIn, Arg arg) { return communityIn.getCommunitySetExpr().accept(new CommunitySetExprToBDD(), arg); }  @Override BDD visitAllExtendedCommunities(AllExtendedCommunities allExtendedCommunities, Arg arg); @Override BDD visitAllLargeCommunities(AllLargeCommunities allLargeCommunities, Arg arg); @Override BDD visitAllStandardCommunities(AllStandardCommunities allStandardCommunities, Arg arg); @Override BDD visitCommunityAcl(CommunityAcl communityAcl, Arg arg); @Override BDD visitCommunityIn(CommunityIn communityIn, Arg arg); @Override BDD visitCommunityIs(CommunityIs communityIs, Arg arg); @Override BDD visitCommunityMatchAll(CommunityMatchAll communityMatchAll, Arg arg); @Override BDD visitCommunityMatchAny(CommunityMatchAny communityMatchAny, Arg arg); @Override BDD visitCommunityMatchExprReference(
      CommunityMatchExprReference communityMatchExprReference, Arg arg); @Override BDD visitCommunityMatchRegex(CommunityMatchRegex communityMatchRegex, Arg arg); @Override BDD visitCommunityNot(CommunityNot communityNot, Arg arg); @Override BDD visitExtendedCommunityGlobalAdministratorHighMatch(
      ExtendedCommunityGlobalAdministratorHighMatch extendedCommunityGlobalAdministratorHighMatch,
      Arg arg); @Override BDD visitExtendedCommunityGlobalAdministratorLowMatch(
      ExtendedCommunityGlobalAdministratorLowMatch extendedCommunityGlobalAdministratorLowMatch,
      Arg arg); @Override BDD visitExtendedCommunityGlobalAdministratorMatch(
      ExtendedCommunityGlobalAdministratorMatch extendedCommunityGlobalAdministratorMatch,
      Arg arg); @Override BDD visitExtendedCommunityLocalAdministratorMatch(
      ExtendedCommunityLocalAdministratorMatch extendedCommunityLocalAdministratorMatch, Arg arg); @Override BDD visitRouteTargetExtendedCommunities(
      RouteTargetExtendedCommunities routeTargetExtendedCommunities, Arg arg); @Override BDD visitSiteOfOriginExtendedCommunities(
      SiteOfOriginExtendedCommunities siteOfOriginExtendedCommunities, Arg arg); @Override BDD visitStandardCommunityHighMatch(
      StandardCommunityHighMatch standardCommunityHighMatch, Arg arg); @Override BDD visitStandardCommunityLowMatch(
      StandardCommunityLowMatch standardCommunityLowMatch, Arg arg); @Override BDD visitVpnDistinguisherExtendedCommunities(
      VpnDistinguisherExtendedCommunities vpnDistinguisherExtendedCommunities, Arg arg); }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIn(CommunityIn communityIn, Arg arg) { return communityIn.getCommunitySetExpr().accept(new CommunitySetExprToBDD(), arg); }  @Override BDD visitAllExtendedCommunities(AllExtendedCommunities allExtendedCommunities, Arg arg); @Override BDD visitAllLargeCommunities(AllLargeCommunities allLargeCommunities, Arg arg); @Override BDD visitAllStandardCommunities(AllStandardCommunities allStandardCommunities, Arg arg); @Override BDD visitCommunityAcl(CommunityAcl communityAcl, Arg arg); @Override BDD visitCommunityIn(CommunityIn communityIn, Arg arg); @Override BDD visitCommunityIs(CommunityIs communityIs, Arg arg); @Override BDD visitCommunityMatchAll(CommunityMatchAll communityMatchAll, Arg arg); @Override BDD visitCommunityMatchAny(CommunityMatchAny communityMatchAny, Arg arg); @Override BDD visitCommunityMatchExprReference(
      CommunityMatchExprReference communityMatchExprReference, Arg arg); @Override BDD visitCommunityMatchRegex(CommunityMatchRegex communityMatchRegex, Arg arg); @Override BDD visitCommunityNot(CommunityNot communityNot, Arg arg); @Override BDD visitExtendedCommunityGlobalAdministratorHighMatch(
      ExtendedCommunityGlobalAdministratorHighMatch extendedCommunityGlobalAdministratorHighMatch,
      Arg arg); @Override BDD visitExtendedCommunityGlobalAdministratorLowMatch(
      ExtendedCommunityGlobalAdministratorLowMatch extendedCommunityGlobalAdministratorLowMatch,
      Arg arg); @Override BDD visitExtendedCommunityGlobalAdministratorMatch(
      ExtendedCommunityGlobalAdministratorMatch extendedCommunityGlobalAdministratorMatch,
      Arg arg); @Override BDD visitExtendedCommunityLocalAdministratorMatch(
      ExtendedCommunityLocalAdministratorMatch extendedCommunityLocalAdministratorMatch, Arg arg); @Override BDD visitRouteTargetExtendedCommunities(
      RouteTargetExtendedCommunities routeTargetExtendedCommunities, Arg arg); @Override BDD visitSiteOfOriginExtendedCommunities(
      SiteOfOriginExtendedCommunities siteOfOriginExtendedCommunities, Arg arg); @Override BDD visitStandardCommunityHighMatch(
      StandardCommunityHighMatch standardCommunityHighMatch, Arg arg); @Override BDD visitStandardCommunityLowMatch(
      StandardCommunityLowMatch standardCommunityLowMatch, Arg arg); @Override BDD visitVpnDistinguisherExtendedCommunities(
      VpnDistinguisherExtendedCommunities vpnDistinguisherExtendedCommunities, Arg arg);  }