@Test public void testVisitLiteralCommunitySet() { CommunitySet cs = CommunitySet.of(StandardCommunity.of(1L)); assertThat( eval(new LiteralCommunitySet(cs)), equalTo(CommunitySet.of(StandardCommunity.of(1L)))); }
@Override public @Nonnull CommunitySet visitLiteralCommunitySet( LiteralCommunitySet literalCommunitySet, CommunityContext arg) { return literalCommunitySet.getCommunitySet(); }
CommunitySetExprEvaluator implements CommunitySetExprVisitor<CommunitySet, CommunityContext> { @Override public @Nonnull CommunitySet visitLiteralCommunitySet( LiteralCommunitySet literalCommunitySet, CommunityContext arg) { return literalCommunitySet.getCommunitySet(); } }
CommunitySetExprEvaluator implements CommunitySetExprVisitor<CommunitySet, CommunityContext> { @Override public @Nonnull CommunitySet visitLiteralCommunitySet( LiteralCommunitySet literalCommunitySet, CommunityContext arg) { return literalCommunitySet.getCommunitySet(); } private  CommunitySetExprEvaluator(); }
CommunitySetExprEvaluator implements CommunitySetExprVisitor<CommunitySet, CommunityContext> { @Override public @Nonnull CommunitySet visitLiteralCommunitySet( LiteralCommunitySet literalCommunitySet, CommunityContext arg) { return literalCommunitySet.getCommunitySet(); } private  CommunitySetExprEvaluator(); static @Nonnull CommunitySetExprEvaluator instance(); @Override @Nonnull CommunitySet visitInputCommunities(
      InputCommunities inputCommunities, CommunityContext arg); @Override CommunitySet visitCommunityExprsSet(
      CommunityExprsSet communityExprsSet, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetDifference(
      CommunitySetDifference communitySetDifference, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetExprReference(
      CommunitySetExprReference communitySetExprReference, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetReference(
      CommunitySetReference communitySetReference, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetUnion(
      CommunitySetUnion communitySetUnion, CommunityContext arg); @Override @Nonnull CommunitySet visitLiteralCommunitySet(
      LiteralCommunitySet literalCommunitySet, CommunityContext arg); }
CommunitySetExprEvaluator implements CommunitySetExprVisitor<CommunitySet, CommunityContext> { @Override public @Nonnull CommunitySet visitLiteralCommunitySet( LiteralCommunitySet literalCommunitySet, CommunityContext arg) { return literalCommunitySet.getCommunitySet(); } private  CommunitySetExprEvaluator(); static @Nonnull CommunitySetExprEvaluator instance(); @Override @Nonnull CommunitySet visitInputCommunities(
      InputCommunities inputCommunities, CommunityContext arg); @Override CommunitySet visitCommunityExprsSet(
      CommunityExprsSet communityExprsSet, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetDifference(
      CommunitySetDifference communitySetDifference, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetExprReference(
      CommunitySetExprReference communitySetExprReference, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetReference(
      CommunitySetReference communitySetReference, CommunityContext arg); @Override @Nonnull CommunitySet visitCommunitySetUnion(
      CommunitySetUnion communitySetUnion, CommunityContext arg); @Override @Nonnull CommunitySet visitLiteralCommunitySet(
      LiteralCommunitySet literalCommunitySet, CommunityContext arg);  }