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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
package Torello.HTML.NodeSearch;

import java.util.Vector;
import java.util.regex.Pattern;
import java.util.function.Predicate;

import Torello.HTML.*;
import Torello.HTML.NodeSearch.searchLoops.ITPeek;
import Torello.Java.LV;

/**
 * Searches Vectorized-HTML for Tag-Matches by Inner-Tag (attribute) names & values, and
 * returns <B><I>both</I></B> the index-locatioon <B><I>and</I></B> the tag as instances of
 * {@link TagNodeIndex}.
 * 
 * <BR /><BR /><EMBED CLASS="external-html" DATA-FILE-ID=InnerTagPeek>  
 */
@Torello.HTML.Tools.JavaDoc.JDHeaderBackgroundImg
@Torello.HTML.Tools.JavaDoc.StaticFunctional
public class InnerTagPeek
{
    private InnerTagPeek() { }

    // ********************************************************************************************
    // PEEK-FIRST METHODS
    // ********************************************************************************************

    // **** PEEK-First, CRITERIA: htmlTag, sPos, ePos
    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-First, CRITERIA: htmlTag
    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String htmlTag, String innerTag)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-First, CRITERIA: sPos, ePos
    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, Pattern p)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, int sPos, int ePos, Predicate<TagNode> p)
    { return ITPeek.NTH(html, 1, new LV(html, sPos, ePos), p); }


    // **** PEEK-First, ALL-CRITERIA-NULL
    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String innerTag)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String innerTag, Pattern p)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex first(Vector<? extends HTMLNode> html, Predicate<TagNode> p)
    { return ITPeek.NTH(html, 1, new LV(html, 0, -1), p); }

    // ********************************************************************************************
    // PEEK-NTH METHODS
    // ********************************************************************************************

    // **** PEEK-Nth, CRITERIA: htmlTag, sPos, ePos
    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-Nth, CRITERIA: htmlTag
    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-Nth, CRITERIA: sPos, ePos
    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag, Pattern p)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, Predicate<TagNode> p)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), p); }


    // **** PEEK-Nth, ALL-CRITERIA-NULL
    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String innerTag)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String innerTag, Pattern p)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nth(Vector<? extends HTMLNode> html, int nth, Predicate<TagNode> p)
    { return ITPeek.NTH(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), p); }


    // ********************************************************************************************
    // PEEK-LAST METHODS
    // ********************************************************************************************

    // **** PEEK-Last, CRITERIA: htmlTag, sPos, ePos
    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-Last, CRITERIA: htmlTag
    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String htmlTag, String innerTag)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-Last, CRITERIA: sPos, ePos
    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, int sPos, int ePos, Predicate<TagNode> p)
    { return ITPeek.NTHFE(html, 1, new LV(html, sPos, ePos), p); }


    // **** PEEK-Last, ALL-CRITERIA-NULL
    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String innerTag)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }	

    public static TagNodeIndex last(Vector<? extends HTMLNode> html, Predicate<TagNode> p)
    { return ITPeek.NTHFE(html, 1, new LV(html, 0, -1), p); }	


    // ********************************************************************************************
    // PEEK-NTH-FROM-END METHODS
    // ********************************************************************************************

    // **** PEEK-Nth-From-End, CRITERIA: htmlTag, sPos, ePos
    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-Nth-From-End, CRITERIA: htmlTag
    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-Nth-From-End, CRITERIA: sPos, ePos
    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, int sPos, int ePos, Predicate<TagNode> p)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, sPos, ePos), p); }


    // **** PEEK-Nth-From-End, ALL-CRITERIA-NULL
    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String innerTag)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String innerTag, Pattern p)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }	

    public static TagNodeIndex nthFromEnd(Vector<? extends HTMLNode> html, int nth, Predicate<TagNode> p)
    { return ITPeek.NTHFE(html, ARGCHECK.n(nth, html), new LV(html, 0, -1), p); }	


    // ********************************************************************************************
    // PEEK-ALL METHODS
    // ********************************************************************************************

    // **** PEEK-All, CRITERIA: htmlTag, sPos, ePos
    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-All, CRITERIA: htmlTag
    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String htmlTag, String innerTag)
    { return ITPeek.ALL(html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.ALL(html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, Pattern p)
    { return ITPeek.ALL(html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String htmlTag, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.ALL(html, new LV(html, 0, -1), ARGCHECK.htmlTag(htmlTag), ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, Predicate<TagNode> p, String... htmlTags)
    { return ITPeek.ALL(html, new LV(html, 0, -1), p, ARGCHECK.htmlTags(htmlTags)); }


    // **** PEEK-All, CRITERIA: sPos, ePos
    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, Pattern p)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, int sPos, int ePos, Predicate<TagNode> p)
    { return ITPeek.ALL(html, new LV(html, sPos, ePos), p); }


    // **** PEEK-All, ALL-CRITERIA-NULL
    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String innerTag)
    { return ITPeek.ALL(html, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TRUE); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String innerTag, TextComparitor tc, String... compareStr)
    { return ITPeek.ALL(html, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.TC(tc, compareStr)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String innerTag, Pattern p)
    { return ITPeek.ALL(html, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), ARGCHECK.REGEX(p)); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, String innerTag, Predicate<String> attributeValuePred)
    { return ITPeek.ALL(html, new LV(html, 0, -1), null, ARGCHECK.innerTag(innerTag), attributeValuePred); }

    public static Vector<TagNodeIndex> all(Vector<? extends HTMLNode> html, Predicate<TagNode> p)
    { return ITPeek.ALL(html, new LV(html, 0, -1), p); }
}