@Test public void testResolveType() { _iface11B.setType(InterfaceType.VLAN); _iface12B.setType(InterfaceType.VPN); build(); assertThat( new ParboiledInterfaceSpecifier(new TypeInterfaceAstNode("vpn")).resolve(_nodes, _ctxt), contains(NodeInterfacePair.of(_iface12))); }
@Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } ParboiledInterfaceSpecifier(InterfaceAstNode ast); }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } ParboiledInterfaceSpecifier(InterfaceAstNode ast); static ParboiledInterfaceSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt); }
ParboiledInterfaceSpecifier implements InterfaceSpecifier { @Override public Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt) { return _ast.accept(new InterfaceAstNodeToInterfaces(nodes, ctxt)); } ParboiledInterfaceSpecifier(InterfaceAstNode ast); static ParboiledInterfaceSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<NodeInterfacePair> resolve(Set<String> nodes, SpecifierContext ctxt);  }