@Test public void testVisitCommunitySetNot() { CommunitySetNot csn = new CommunitySetNot(new HasCommunity(new CommunityIs(StandardCommunity.parse("20:30")))); BDD result = _communitySetMatchExprToBDD.visitCommunitySetNot(csn, _arg); CommunityVar cvar = CommunityVar.from(StandardCommunity.parse("20:30")); assertEquals(cvarToBDD(cvar).not(), result); }
@Override public BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg) { return communitySetNot.getExpr().accept(this, arg).not(); }
CommunitySetMatchExprToBDD implements CommunitySetMatchExprVisitor<BDD, CommunitySetMatchExprToBDD.Arg> { @Override public BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg) { return communitySetNot.getExpr().accept(this, arg).not(); } }
CommunitySetMatchExprToBDD implements CommunitySetMatchExprVisitor<BDD, CommunitySetMatchExprToBDD.Arg> { @Override public BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg) { return communitySetNot.getExpr().accept(this, arg).not(); }  }
CommunitySetMatchExprToBDD implements CommunitySetMatchExprVisitor<BDD, CommunitySetMatchExprToBDD.Arg> { @Override public BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg) { return communitySetNot.getExpr().accept(this, arg).not(); }  @Override BDD visitCommunitySetAcl(CommunitySetAcl communitySetAcl, Arg arg); @Override BDD visitCommunitySetMatchAll(CommunitySetMatchAll communitySetMatchAll, Arg arg); @Override BDD visitCommunitySetMatchAny(CommunitySetMatchAny communitySetMatchAny, Arg arg); @Override BDD visitCommunitySetMatchExprReference(
      CommunitySetMatchExprReference communitySetMatchExprReference, Arg arg); @Override BDD visitCommunitySetMatchRegex(CommunitySetMatchRegex communitySetMatchRegex, Arg arg); @Override BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg); @Override BDD visitHasCommunity(HasCommunity hasCommunity, Arg arg); }
CommunitySetMatchExprToBDD implements CommunitySetMatchExprVisitor<BDD, CommunitySetMatchExprToBDD.Arg> { @Override public BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg) { return communitySetNot.getExpr().accept(this, arg).not(); }  @Override BDD visitCommunitySetAcl(CommunitySetAcl communitySetAcl, Arg arg); @Override BDD visitCommunitySetMatchAll(CommunitySetMatchAll communitySetMatchAll, Arg arg); @Override BDD visitCommunitySetMatchAny(CommunitySetMatchAny communitySetMatchAny, Arg arg); @Override BDD visitCommunitySetMatchExprReference(
      CommunitySetMatchExprReference communitySetMatchExprReference, Arg arg); @Override BDD visitCommunitySetMatchRegex(CommunitySetMatchRegex communitySetMatchRegex, Arg arg); @Override BDD visitCommunitySetNot(CommunitySetNot communitySetNot, Arg arg); @Override BDD visitHasCommunity(HasCommunity hasCommunity, Arg arg);  }