001package Torello.HTML.NodeSearch; 002 003import java.util.*; 004 005import Torello.HTML.*; 006import Torello.HTML.NodeSearch.SearchLoops.L1Inclusive.TNPeekL1Incl; 007import Torello.Java.LV; 008 009/** 010 * Retrieves matches using exactly the same logic as both the class {@link TagNodeGetL1Inclusive} 011 * and {@link TagNodeFindL1Inclusive}, however this class returns both the sub-list end-points 012 * ({@link DotPair}) and the nodes themselves (<CODE>Vector<{@link HTMLNode}></CODE>) as an 013 * instance of {@link SubSection}. 014 * 015 * <EMBED CLASS='external-html' DATA-FILE-ID=TagNodePeekL1Inclusive> 016 */ 017@Torello.JavaDoc.JDHeaderBackgroundImg 018@Torello.JavaDoc.StaticFunctional 019public class TagNodePeekL1Inclusive 020{ 021 private TagNodePeekL1Inclusive() { } 022 023 public static Vector<SubSection> all (Vector<? extends HTMLNode> html, String htmlTag) 024 { return TNPeekL1Incl.all (html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag)); } 025 026 public static Vector<SubSection> all (Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag) 027 { return TNPeekL1Incl.all (html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag)); } 028}