@Test public void testVisitCommunitySetNot() { CommunitySetNot csn = new CommunitySetNot(new HasCommunity(new CommunityIs(COMM1))); Set<CommunityVar> result = _varCollector.visitCommunitySetNot(csn, _baseConfig); CommunityVar cvar = CommunityVar.from(COMM1); assertEquals(ImmutableSet.of(cvar), result); }
@Override public Set<CommunityVar> visitCommunitySetNot( CommunitySetNot communitySetNot, Configuration arg) { return communitySetNot.getExpr().accept(this, arg); }
CommunitySetMatchExprVarCollector implements CommunitySetMatchExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetNot( CommunitySetNot communitySetNot, Configuration arg) { return communitySetNot.getExpr().accept(this, arg); } }
CommunitySetMatchExprVarCollector implements CommunitySetMatchExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetNot( CommunitySetNot communitySetNot, Configuration arg) { return communitySetNot.getExpr().accept(this, arg); }  }
CommunitySetMatchExprVarCollector implements CommunitySetMatchExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetNot( CommunitySetNot communitySetNot, Configuration arg) { return communitySetNot.getExpr().accept(this, arg); }  @Override Set<CommunityVar> visitCommunitySetAcl(
      CommunitySetAcl communitySetAcl, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchAll(
      CommunitySetMatchAll communitySetMatchAll, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchAny(
      CommunitySetMatchAny communitySetMatchAny, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchExprReference(
      CommunitySetMatchExprReference communitySetMatchExprReference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchRegex(
      CommunitySetMatchRegex communitySetMatchRegex, Configuration arg); @Override Set<CommunityVar> visitCommunitySetNot(
      CommunitySetNot communitySetNot, Configuration arg); @Override Set<CommunityVar> visitHasCommunity(HasCommunity hasCommunity, Configuration arg); }
CommunitySetMatchExprVarCollector implements CommunitySetMatchExprVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitCommunitySetNot( CommunitySetNot communitySetNot, Configuration arg) { return communitySetNot.getExpr().accept(this, arg); }  @Override Set<CommunityVar> visitCommunitySetAcl(
      CommunitySetAcl communitySetAcl, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchAll(
      CommunitySetMatchAll communitySetMatchAll, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchAny(
      CommunitySetMatchAny communitySetMatchAny, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchExprReference(
      CommunitySetMatchExprReference communitySetMatchExprReference, Configuration arg); @Override Set<CommunityVar> visitCommunitySetMatchRegex(
      CommunitySetMatchRegex communitySetMatchRegex, Configuration arg); @Override Set<CommunityVar> visitCommunitySetNot(
      CommunitySetNot communitySetNot, Configuration arg); @Override Set<CommunityVar> visitHasCommunity(HasCommunity hasCommunity, Configuration arg);  }