@Test public void testVisitDeleteCommunity() { DeleteCommunity dc = new DeleteCommunity(new LiteralCommunity(COMM1)); Set<CommunityVar> result = _varCollector.visitDeleteCommunity(dc, _baseConfig); assertEquals(ImmutableSet.of(CommunityVar.from(COMM1)), result); }
@Override public Set<CommunityVar> visitDeleteCommunity( DeleteCommunity deleteCommunity, Configuration arg) { return CommunityVarCollector.collectCommunityVars(arg, deleteCommunity.getExpr()); }
RoutePolicyStatementVarCollector implements StatementVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitDeleteCommunity( DeleteCommunity deleteCommunity, Configuration arg) { return CommunityVarCollector.collectCommunityVars(arg, deleteCommunity.getExpr()); } }
RoutePolicyStatementVarCollector implements StatementVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitDeleteCommunity( DeleteCommunity deleteCommunity, Configuration arg) { return CommunityVarCollector.collectCommunityVars(arg, deleteCommunity.getExpr()); }  }
RoutePolicyStatementVarCollector implements StatementVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitDeleteCommunity( DeleteCommunity deleteCommunity, Configuration arg) { return CommunityVarCollector.collectCommunityVars(arg, deleteCommunity.getExpr()); }  @Override Set<CommunityVar> visitAddCommunity(AddCommunity addCommunity, Configuration arg); @Override Set<CommunityVar> visitBufferedStatement(
      BufferedStatement bufferedStatement, Configuration arg); @Override Set<CommunityVar> visitCallStatement(CallStatement callStatement, Configuration arg); @Override Set<CommunityVar> visitComment(Comment comment, Configuration arg); @Override Set<CommunityVar> visitDeleteCommunity(
      DeleteCommunity deleteCommunity, Configuration arg); @Override Set<CommunityVar> visitIf(If if1, Configuration arg); @Override Set<CommunityVar> visitPrependAsPath(PrependAsPath prependAsPath, Configuration arg); @Override Set<CommunityVar> visitSetAdministrativeCost(
      SetAdministrativeCost setAdministrativeCost, Configuration arg); @Override Set<CommunityVar> visitSetCommunities(SetCommunities setCommunities, Configuration arg); @Override Set<CommunityVar> visitSetCommunity(SetCommunity setCommunity, Configuration arg); @Override Set<CommunityVar> visitSetDefaultPolicy(
      SetDefaultPolicy setDefaultPolicy, Configuration arg); @Override Set<CommunityVar> visitSetEigrpMetric(SetEigrpMetric setEigrpMetric, Configuration arg); @Override Set<CommunityVar> visitSetIsisLevel(SetIsisLevel setIsisLevel, Configuration arg); @Override Set<CommunityVar> visitSetIsisMetricType(
      SetIsisMetricType setIsisMetricType, Configuration arg); @Override Set<CommunityVar> visitSetLocalPreference(
      SetLocalPreference setLocalPreference, Configuration arg); @Override Set<CommunityVar> visitSetMetric(SetMetric setMetric, Configuration arg); @Override Set<CommunityVar> visitSetNextHop(SetNextHop setNextHop, Configuration arg); @Override Set<CommunityVar> visitSetOrigin(SetOrigin setOrigin, Configuration arg); @Override Set<CommunityVar> visitSetOspfMetricType(
      SetOspfMetricType setOspfMetricType, Configuration arg); @Override Set<CommunityVar> visitSetTag(SetTag setTag, Configuration arg); @Override Set<CommunityVar> visitSetVarMetricType(
      SetVarMetricType setVarMetricType, Configuration arg); @Override Set<CommunityVar> visitSetWeight(SetWeight setWeight, Configuration arg); @Override Set<CommunityVar> visitStaticStatement(
      StaticStatement staticStatement, Configuration arg); Set<CommunityVar> visitAll(List<Statement> statements, Configuration arg); }
RoutePolicyStatementVarCollector implements StatementVisitor<Set<CommunityVar>, Configuration> { @Override public Set<CommunityVar> visitDeleteCommunity( DeleteCommunity deleteCommunity, Configuration arg) { return CommunityVarCollector.collectCommunityVars(arg, deleteCommunity.getExpr()); }  @Override Set<CommunityVar> visitAddCommunity(AddCommunity addCommunity, Configuration arg); @Override Set<CommunityVar> visitBufferedStatement(
      BufferedStatement bufferedStatement, Configuration arg); @Override Set<CommunityVar> visitCallStatement(CallStatement callStatement, Configuration arg); @Override Set<CommunityVar> visitComment(Comment comment, Configuration arg); @Override Set<CommunityVar> visitDeleteCommunity(
      DeleteCommunity deleteCommunity, Configuration arg); @Override Set<CommunityVar> visitIf(If if1, Configuration arg); @Override Set<CommunityVar> visitPrependAsPath(PrependAsPath prependAsPath, Configuration arg); @Override Set<CommunityVar> visitSetAdministrativeCost(
      SetAdministrativeCost setAdministrativeCost, Configuration arg); @Override Set<CommunityVar> visitSetCommunities(SetCommunities setCommunities, Configuration arg); @Override Set<CommunityVar> visitSetCommunity(SetCommunity setCommunity, Configuration arg); @Override Set<CommunityVar> visitSetDefaultPolicy(
      SetDefaultPolicy setDefaultPolicy, Configuration arg); @Override Set<CommunityVar> visitSetEigrpMetric(SetEigrpMetric setEigrpMetric, Configuration arg); @Override Set<CommunityVar> visitSetIsisLevel(SetIsisLevel setIsisLevel, Configuration arg); @Override Set<CommunityVar> visitSetIsisMetricType(
      SetIsisMetricType setIsisMetricType, Configuration arg); @Override Set<CommunityVar> visitSetLocalPreference(
      SetLocalPreference setLocalPreference, Configuration arg); @Override Set<CommunityVar> visitSetMetric(SetMetric setMetric, Configuration arg); @Override Set<CommunityVar> visitSetNextHop(SetNextHop setNextHop, Configuration arg); @Override Set<CommunityVar> visitSetOrigin(SetOrigin setOrigin, Configuration arg); @Override Set<CommunityVar> visitSetOspfMetricType(
      SetOspfMetricType setOspfMetricType, Configuration arg); @Override Set<CommunityVar> visitSetTag(SetTag setTag, Configuration arg); @Override Set<CommunityVar> visitSetVarMetricType(
      SetVarMetricType setVarMetricType, Configuration arg); @Override Set<CommunityVar> visitSetWeight(SetWeight setWeight, Configuration arg); @Override Set<CommunityVar> visitStaticStatement(
      StaticStatement staticStatement, Configuration arg); Set<CommunityVar> visitAll(List<Statement> statements, Configuration arg);  }