@Test public void testResolveUnion() { assertThat( new ParboiledLocationSpecifier( new UnionLocationAstNode( InterfaceLocationAstNode.createFromNode(_node1), InterfaceLocationAstNode.createFromInterface( new NameInterfaceAstNode(_iface1)))) .resolve(_ctxt), equalTo( ImmutableSet.of( new InterfaceLocation(_node1, _iface1), new InterfaceLocation(_node1, _iface2), new InterfaceLocation(_node2, _iface1)))); }
@Override public Set<Location> resolve(SpecifierContext ctxt) { return _ast.accept(new LocationAstNodeToLocations(ctxt)); }
ParboiledLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _ast.accept(new LocationAstNodeToLocations(ctxt)); } }
ParboiledLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _ast.accept(new LocationAstNodeToLocations(ctxt)); } ParboiledLocationSpecifier(LocationAstNode ast); }
ParboiledLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _ast.accept(new LocationAstNodeToLocations(ctxt)); } ParboiledLocationSpecifier(LocationAstNode ast); static ParboiledLocationSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<Location> resolve(SpecifierContext ctxt); }
ParboiledLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _ast.accept(new LocationAstNodeToLocations(ctxt)); } ParboiledLocationSpecifier(LocationAstNode ast); static ParboiledLocationSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<Location> resolve(SpecifierContext ctxt);  }