@Test public void testVisitCommunityIs() { CommunityIs ci = new CommunityIs(StandardCommunity.parse("20:30")); BDD result = _communityMatchExprToBDD.visitCommunityIs(ci, _arg); CommunityVar cvar = CommunityVar.from(StandardCommunity.parse("20:30")); assertEquals(cvarToBDD(cvar), result); }
@Override public BDD visitCommunityIs(CommunityIs communityIs, Arg arg) { return CommunitySetMatchExprToBDD.communityVarsToBDD( communityIs.accept( new CommunityMatchExprVarCollector(), arg.getTransferBDD().getConfiguration()), arg); }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIs(CommunityIs communityIs, Arg arg) { return CommunitySetMatchExprToBDD.communityVarsToBDD( communityIs.accept( new CommunityMatchExprVarCollector(), arg.getTransferBDD().getConfiguration()), arg); } }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIs(CommunityIs communityIs, Arg arg) { return CommunitySetMatchExprToBDD.communityVarsToBDD( communityIs.accept( new CommunityMatchExprVarCollector(), arg.getTransferBDD().getConfiguration()), arg); }  }
CommunityMatchExprToBDD implements CommunityMatchExprVisitor<BDD, Arg> { @Override public BDD visitCommunityIs(CommunityIs communityIs, Arg arg) { return CommunitySetMatchExprToBDD.communityVarsToBDD( communityIs.accept( new CommunityMatchExprVarCollector(), arg.getTransferBDD().getConfiguration()), 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 visitCommunityIs(CommunityIs communityIs, Arg arg) { return CommunitySetMatchExprToBDD.communityVarsToBDD( communityIs.accept( new CommunityMatchExprVarCollector(), arg.getTransferBDD().getConfiguration()), 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);  }