@Test public void testResolveUnionTwoIncludings() { assertThat( new ParboiledIpProtocolSpecifier( new UnionIpProtocolAstNode( new IpProtocolIpProtocolAstNode("tcp"), new IpProtocolIpProtocolAstNode("udp"))) .resolve(), equalTo(ImmutableSet.of(IpProtocol.TCP, IpProtocol.UDP))); }
@Override public Set<IpProtocol> resolve() { return _ast.accept(new IpProtocolAstNodeToIpProtocols(new IpProtocolSets())).toIpProtocols(); }
ParboiledIpProtocolSpecifier implements IpProtocolSpecifier { @Override public Set<IpProtocol> resolve() { return _ast.accept(new IpProtocolAstNodeToIpProtocols(new IpProtocolSets())).toIpProtocols(); } }
ParboiledIpProtocolSpecifier implements IpProtocolSpecifier { @Override public Set<IpProtocol> resolve() { return _ast.accept(new IpProtocolAstNodeToIpProtocols(new IpProtocolSets())).toIpProtocols(); } ParboiledIpProtocolSpecifier(IpProtocolAstNode ast); }
ParboiledIpProtocolSpecifier implements IpProtocolSpecifier { @Override public Set<IpProtocol> resolve() { return _ast.accept(new IpProtocolAstNodeToIpProtocols(new IpProtocolSets())).toIpProtocols(); } ParboiledIpProtocolSpecifier(IpProtocolAstNode ast); static ParboiledIpProtocolSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<IpProtocol> resolve(); }
ParboiledIpProtocolSpecifier implements IpProtocolSpecifier { @Override public Set<IpProtocol> resolve() { return _ast.accept(new IpProtocolAstNodeToIpProtocols(new IpProtocolSets())).toIpProtocols(); } ParboiledIpProtocolSpecifier(IpProtocolAstNode ast); static ParboiledIpProtocolSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<IpProtocol> resolve();  }