1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | package Torello.HTML.NodeSearch; import java.util.*; import java.util.regex.Pattern; import java.util.function.Predicate; import Torello.HTML.*; import Torello.HTML.NodeSearch.SearchLoops.L1Inclusive.TNGetL1Incl; import Torello.Java.LV; /** * Similar to {@link TagNodeGetInclusive}, this class searches Vectorized-HTML for {@link TagNode} * matches, and returns the Opening-Tag, the Closing-Tag <I>and all nodes between them</I> as * sub-lists (instances of {@code Vector<HTMLNode>}); <B><I>however,</I></B> any matches that * overlap each-other are eliminated from the result-list. * * * <BR /><BR /> * <EMBED CLASS='external-html' DATA-FILE-ID=TagNodeGetL1Inclusive> */ @Torello.JavaDoc.JDHeaderBackgroundImg @Torello.JavaDoc.StaticFunctional public class TagNodeGetL1Inclusive { private TagNodeGetL1Inclusive() { } public static Vector<Vector<HTMLNode>> all (Vector<? extends HTMLNode> html, String htmlTag) { return TNGetL1Incl.all (html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag)); } public static Vector<Vector<HTMLNode>> all (Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag) { return TNGetL1Incl.all (html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag)); } } |