@Test public void testAsLiteralCommunities() { CommunityHalvesExpr r = new CommunityHalvesExpr(new LiteralCommunityHalf(1), new LiteralCommunityHalf(2)); _thrown.expect(UnsupportedOperationException.class); r.asLiteralCommunities(null); }
@Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a list of literal communities"); }
CommunityHalvesExpr extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a list of literal communities"); } }
CommunityHalvesExpr extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a list of literal communities"); } CommunityHalvesExpr(@Nonnull CommunityHalfExpr left, @Nonnull CommunityHalfExpr right); }
CommunityHalvesExpr extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a list of literal communities"); } CommunityHalvesExpr(@Nonnull CommunityHalfExpr left, @Nonnull CommunityHalfExpr right); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(@Nonnull Environment environment); @Override boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); @JsonProperty(PROP_LEFT) @Nonnull CommunityHalfExpr getLeft(); @JsonProperty(PROP_RIGHT) @Nonnull CommunityHalfExpr getRight(); @Override int hashCode(); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override boolean reducible(); @Override String toString(); }
CommunityHalvesExpr extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a list of literal communities"); } CommunityHalvesExpr(@Nonnull CommunityHalfExpr left, @Nonnull CommunityHalfExpr right); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(@Nonnull Environment environment); @Override boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); @JsonProperty(PROP_LEFT) @Nonnull CommunityHalfExpr getLeft(); @JsonProperty(PROP_RIGHT) @Nonnull CommunityHalfExpr getRight(); @Override int hashCode(); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override boolean reducible(); @Override String toString();  }