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.TNGetL1Incl;
009import Torello.Java.LV;
010
011/**
012 * Similar to {@link TagNodeGetInclusive}, this class searches Vectorized-HTML for {@link TagNode}
013 * matches, and returns the Opening-Tag, the Closing-Tag <I>and all nodes between them</I> as
014 * sub-lists (instances of {@code Vector<HTMLNode>}); <B><I>however,</I></B> any matches that
015 * overlap each-other are eliminated from the result-list.
016 * 
017 * 
018 * <BR /><BR />
019 * <EMBED CLASS='external-html' DATA-FILE-ID=TagNodeGetL1Inclusive>
020 */
021@Torello.JavaDoc.JDHeaderBackgroundImg
022@Torello.JavaDoc.StaticFunctional
023public class TagNodeGetL1Inclusive
024{
025    private TagNodeGetL1Inclusive() { }
026
027    public static Vector<Vector<HTMLNode>> all          (Vector<? extends HTMLNode> html, String htmlTag)
028    { return TNGetL1Incl.all                            (html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag)); }
029
030    public static Vector<Vector<HTMLNode>> all          (Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag)
031    { return TNGetL1Incl.all                            (html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag)); }
032}