- Common ways to obtain TagComponentList
private void myMethod () {TagComponentList t =
String selector;XPathComponentCompilerService.compileSelectorList(selector)
- Smart code suggestions by Codota
}
public static TagComponentList compileSelectorList(String selector) { W3cCssSelectorListWithMap parsedSelectorList = W3cCssSelectorWithMapParser.parseSelector(selector); List<TagComponent> tagComponents = new ArrayList<>(parsedSelectorList.size()); parsedSelectorList.forEach(w3cCssSelectorWithMap -> { tagComponents.add(compileIntoTagComponent(w3cCssSelectorWithMap)); }); return new TagComponentList(tagComponents); }
public static TagComponentList compileSelectorList(String selector) { W3cCssSelectorListWithMap parsedSelectorList = W3cCssSelectorWithMapParser.parseSelector(selector); List<TagComponent> tagComponents = new ArrayList<>(parsedSelectorList.size()); parsedSelectorList.forEach(w3cCssSelectorWithMap -> { tagComponents.add(compileIntoTagComponent(w3cCssSelectorWithMap)); }); return new TagComponentList(tagComponents); }