001package Torello.HTML.NodeSearch; 002 003import java.util.*; 004import java.util.regex.Pattern; 005import java.util.function.Predicate; 006 007import Torello.HTML.*; 008import Torello.HTML.NodeSearch.SearchLoops.L1Inclusive.TNFindL1Incl; 009import Torello.Java.LV; 010 011/** 012 * Similar to {@link TagNodeFindInclusive}, this class searches Vectorized-HTML for {@link TagNode} 013 * matches, and returns the opening and closing Tag-Indices of each match (as an instance 014 * of {@link DotPair}); <B><I>however,</I></B> any matches that overlap each-other are eliminated 015 * from the returned result-list. 016 * 017 * <BR /><BR /><EMBED CLASS='external-html' DATA-FILE-ID=TagNodeFindL1Inclusive> 018 */ 019@Torello.JavaDoc.JDHeaderBackgroundImg 020@Torello.JavaDoc.StaticFunctional 021public class TagNodeFindL1Inclusive 022{ 023 private TagNodeFindL1Inclusive() { } 024 025 public static Vector<DotPair> all (Vector<? extends HTMLNode> html, String htmlTag) 026 { return TNFindL1Incl.all (html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag)); } 027 028 public static Vector<DotPair> all (Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag) 029 { return TNFindL1Incl.all (html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag)); } 030}