@Test public void testResolveGroupsNegateSubset() { assertThat( new ParboiledEnumSetSpecifier<>( new UnionEnumSetAstNode( new ValueEnumSetAstNode<>( RoutingProtocolSpecifier.BGP, Grammar.getEnumValues(Grammar.ROUTING_PROTOCOL_SPECIFIER)), new NotEnumSetAstNode( new ValueEnumSetAstNode<>( RoutingProtocolSpecifier.EBGP, Grammar.getEnumValues(Grammar.ROUTING_PROTOCOL_SPECIFIER)))), Grammar.ROUTING_PROTOCOL_SPECIFIER) .resolve(), equalTo(ImmutableSet.of(RoutingProtocolSpecifier.IBGP))); }
@Override public Set<T> resolve() { return _ast.accept(new EnumSetAstNodeToEnumValues<>(_allValues, _groupValues)).toValues(); }
ParboiledEnumSetSpecifier implements EnumSetSpecifier<T> { @Override public Set<T> resolve() { return _ast.accept(new EnumSetAstNodeToEnumValues<>(_allValues, _groupValues)).toValues(); } }
ParboiledEnumSetSpecifier implements EnumSetSpecifier<T> { @Override public Set<T> resolve() { return _ast.accept(new EnumSetAstNodeToEnumValues<>(_allValues, _groupValues)).toValues(); } ParboiledEnumSetSpecifier(EnumSetAstNode ast, Collection<T> allValues); @SuppressWarnings("unchecked")  ParboiledEnumSetSpecifier(EnumSetAstNode ast, Grammar grammar); private  ParboiledEnumSetSpecifier(
      EnumSetAstNode ast, Collection<T> allValues, Map<T, Set<T>> groupValues); }
ParboiledEnumSetSpecifier implements EnumSetSpecifier<T> { @Override public Set<T> resolve() { return _ast.accept(new EnumSetAstNodeToEnumValues<>(_allValues, _groupValues)).toValues(); } ParboiledEnumSetSpecifier(EnumSetAstNode ast, Collection<T> allValues); @SuppressWarnings("unchecked")  ParboiledEnumSetSpecifier(EnumSetAstNode ast, Grammar grammar); private  ParboiledEnumSetSpecifier(
      EnumSetAstNode ast, Collection<T> allValues, Map<T, Set<T>> groupValues); static ParboiledEnumSetSpecifier<T> parse(String input, Grammar grammar); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<T> resolve(); }
ParboiledEnumSetSpecifier implements EnumSetSpecifier<T> { @Override public Set<T> resolve() { return _ast.accept(new EnumSetAstNodeToEnumValues<>(_allValues, _groupValues)).toValues(); } ParboiledEnumSetSpecifier(EnumSetAstNode ast, Collection<T> allValues); @SuppressWarnings("unchecked")  ParboiledEnumSetSpecifier(EnumSetAstNode ast, Grammar grammar); private  ParboiledEnumSetSpecifier(
      EnumSetAstNode ast, Collection<T> allValues, Map<T, Set<T>> groupValues); static ParboiledEnumSetSpecifier<T> parse(String input, Grammar grammar); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<T> resolve();  }