File: OpMap.html

package info (click to toggle)
libxalan2-java 2.0.1-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 33,596 kB
  • ctags: 21,079
  • sloc: java: 56,919; xml: 5,150; makefile: 59; sh: 27
file content (648 lines) | stat: -rw-r--r-- 25,841 bytes parent folder | download
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Mar 15 14:18:37 EST 2001 -->
<TITLE>
Xalan-Java 2: Class  OpMap
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/OpMap.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/xpath/compiler/OpCodes.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xpath/compiler/PsuedoNames.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="OpMap.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.xpath.compiler</FONT>
<BR>
Class  OpMap</H2>
<PRE>
java.lang.Object
  |
  +--<B>org.apache.xpath.compiler.OpMap</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/xpath/compiler/Compiler.html">Compiler</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>OpMap</B><DT>extends java.lang.Object</DL>

<P>
This class represents the data structure basics of the XPath
 object.
<P>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#m_opMap">m_opMap</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An operations map is used instead of a proper parse tree.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#m_tokenQueue">m_tokenQueue</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TokenStack is the queue of used tokens.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#m_tokenQueueSize">m_tokenQueueSize</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The current size of the token queue.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#MAPINDEX_LENGTH">MAPINDEX_LENGTH</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The length is always the opcode position + 1.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#OpMap()">OpMap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getArgLength(int)">getArgLength</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the length of an operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getArgLengthOfStep(int)">getArgLengthOfStep</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a location step, get the length of that step.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getFirstChildPos(int)">getFirstChildPos</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Go to the first child of a given operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getFirstChildPosOfStep(int)">getFirstChildPosOfStep</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the first child position of a given location step.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getFirstPredicateOpPos(int)">getFirstPredicateOpPos</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given an FROM_stepType position, return the position of the
 first predicate, if there is one, or else this will point
 to the end of the FROM_stepType.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getNextOpPos(int)">getNextOpPos</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given an operation position, return the end position, i.e.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getNextOpPos(int[], int)">getNextOpPos</A></B>(int[]&nbsp;opMap,
             int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given an operation position, return the end position, i.e.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getNextStepPos(int)">getNextStepPos</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a location step position, return the end position, i.e.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getOp(int)">getOp</A></B>(int&nbsp;opPos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given an operation position, return the current op.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getOpMap()">getOpMap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the opcode list that describes the XPath operations.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getPatternString()">getPatternString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the expression as a string for diagnostics.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getStepLocalName(int)">getStepLocalName</A></B>(int&nbsp;opPosOfStep)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the local name of the step.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getStepNS(int)">getStepNS</A></B>(int&nbsp;opPosOfStep)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the namespace of the step.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getStepTestType(int)">getStepTestType</A></B>(int&nbsp;opPosOfStep)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the test type of the step, i.e.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getToken(int)">getToken</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the XPath as a list of tokens.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getTokenQueue()">getTokenQueue</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the XPath as a list of tokens.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#getTokenQueueSize()">getTokenQueueSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get size of the token queue.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xpath/compiler/OpMap.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the expression as a string for diagnostics.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, 
getClass, 
hashCode, 
notify, 
notifyAll, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="m_tokenQueue"><!-- --></A><H3>
m_tokenQueue</H3>
<PRE>
public java.lang.Object[] <B>m_tokenQueue</B></PRE>
<DL>
<DD>TokenStack is the queue of used tokens. The current token is the token at the
 end of the m_tokenQueue. The idea is that the queue can be marked and a sequence
 of tokens can be reused.</DL>
<HR>

<A NAME="m_tokenQueueSize"><!-- --></A><H3>
m_tokenQueueSize</H3>
<PRE>
public int <B>m_tokenQueueSize</B></PRE>
<DL>
<DD>The current size of the token queue.</DL>
<HR>

<A NAME="m_opMap"><!-- --></A><H3>
m_opMap</H3>
<PRE>
public int[] <B>m_opMap</B></PRE>
<DL>
<DD>An operations map is used instead of a proper parse tree.  It contains
 operations codes and indexes into the m_tokenQueue.
 I use an array instead of a full parse tree in order to cut down
 on the number of objects created.</DL>
<HR>

<A NAME="MAPINDEX_LENGTH"><!-- --></A><H3>
MAPINDEX_LENGTH</H3>
<PRE>
public static final int <B>MAPINDEX_LENGTH</B></PRE>
<DL>
<DD>The length is always the opcode position + 1.
 Length is always expressed as the opcode+length bytes,
 so it is always 2 or greater.</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="OpMap()"><!-- --></A><H3>
OpMap</H3>
<PRE>
public <B>OpMap</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Return the expression as a string for diagnostics.<DD><DL>
<DT><B>Returns:</B><DD>The expression string.<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL>
</DD>
</DL>
<HR>

<A NAME="getPatternString()"><!-- --></A><H3>
getPatternString</H3>
<PRE>
public java.lang.String <B>getPatternString</B>()</PRE>
<DL>
<DD>Return the expression as a string for diagnostics.<DD><DL>
<DT><B>Returns:</B><DD>The expression string.</DL>
</DD>
</DL>
<HR>

<A NAME="getTokenQueue()"><!-- --></A><H3>
getTokenQueue</H3>
<PRE>
public java.lang.Object[] <B>getTokenQueue</B>()</PRE>
<DL>
<DD>Get the XPath as a list of tokens.<DD><DL>
<DT><B>Returns:</B><DD>an array of string tokens.</DL>
</DD>
</DL>
<HR>

<A NAME="getToken(int)"><!-- --></A><H3>
getToken</H3>
<PRE>
public java.lang.Object <B>getToken</B>(int&nbsp;pos)</PRE>
<DL>
<DD>Get the XPath as a list of tokens.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - index into token queue.<DT><B>Returns:</B><DD>The token, normally a string.</DL>
</DD>
</DL>
<HR>

<A NAME="getTokenQueueSize()"><!-- --></A><H3>
getTokenQueueSize</H3>
<PRE>
public int <B>getTokenQueueSize</B>()</PRE>
<DL>
<DD>Get size of the token queue.<DD><DL>
<DT><B>Returns:</B><DD>The size of the token queue.</DL>
</DD>
</DL>
<HR>

<A NAME="getOpMap()"><!-- --></A><H3>
getOpMap</H3>
<PRE>
public int[] <B>getOpMap</B>()</PRE>
<DL>
<DD>Get the opcode list that describes the XPath operations.  It contains
 operations codes and indexes into the m_tokenQueue.
 I use an array instead of a full parse tree in order to cut down
 on the number of objects created.<DD><DL>
<DT><B>Returns:</B><DD>An array of integers that is the opcode list that describes the XPath operations.</DL>
</DD>
</DL>
<HR>

<A NAME="getOp(int)"><!-- --></A><H3>
getOp</H3>
<PRE>
public int <B>getOp</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Given an operation position, return the current op.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - index into op map.<DT><B>Returns:</B><DD>the op that corresponds to the opPos argument.</DL>
</DD>
</DL>
<HR>

<A NAME="getNextOpPos(int)"><!-- --></A><H3>
getNextOpPos</H3>
<PRE>
public int <B>getNextOpPos</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Given an operation position, return the end position, i.e. the
 beginning of the next operation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - An op position of an operation for which there is a size 
              entry following.<DT><B>Returns:</B><DD>position of next operation in m_opMap.</DL>
</DD>
</DL>
<HR>

<A NAME="getNextStepPos(int)"><!-- --></A><H3>
getNextStepPos</H3>
<PRE>
public int <B>getNextStepPos</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Given a location step position, return the end position, i.e. the
 beginning of the next step.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - the position of a location step.<DT><B>Returns:</B><DD>the position of the next location step.</DL>
</DD>
</DL>
<HR>

<A NAME="getNextOpPos(int[], int)"><!-- --></A><H3>
getNextOpPos</H3>
<PRE>
public static int <B>getNextOpPos</B>(int[]&nbsp;opMap,
                               int&nbsp;opPos)</PRE>
<DL>
<DD>Given an operation position, return the end position, i.e. the
 beginning of the next operation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opMap</CODE> - The operations map.<DD><CODE>opPos</CODE> - index to operation, for which there is a size entry following.<DT><B>Returns:</B><DD>position of next operation in m_opMap.</DL>
</DD>
</DL>
<HR>

<A NAME="getFirstPredicateOpPos(int)"><!-- --></A><H3>
getFirstPredicateOpPos</H3>
<PRE>
public int <B>getFirstPredicateOpPos</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Given an FROM_stepType position, return the position of the
 first predicate, if there is one, or else this will point
 to the end of the FROM_stepType.
 Example:
  int posOfPredicate = xpath.getNextOpPos(stepPos);
  boolean hasPredicates =
            OpCodes.OP_PREDICATE == xpath.getOp(posOfPredicate);<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - position of FROM_stepType op.<DT><B>Returns:</B><DD>position of predicate in FROM_stepType structure.</DL>
</DD>
</DL>
<HR>

<A NAME="getFirstChildPos(int)"><!-- --></A><H3>
getFirstChildPos</H3>
<PRE>
public static int <B>getFirstChildPos</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Go to the first child of a given operation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - position of operation.<DT><B>Returns:</B><DD>The position of the first child of the operation.</DL>
</DD>
</DL>
<HR>

<A NAME="getArgLength(int)"><!-- --></A><H3>
getArgLength</H3>
<PRE>
public int <B>getArgLength</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Get the length of an operation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - The position of the operation in the op map.<DT><B>Returns:</B><DD>The size of the operation.</DL>
</DD>
</DL>
<HR>

<A NAME="getArgLengthOfStep(int)"><!-- --></A><H3>
getArgLengthOfStep</H3>
<PRE>
public int <B>getArgLengthOfStep</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Given a location step, get the length of that step.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - Position of location step in op map.<DT><B>Returns:</B><DD>The length of the step.</DL>
</DD>
</DL>
<HR>

<A NAME="getFirstChildPosOfStep(int)"><!-- --></A><H3>
getFirstChildPosOfStep</H3>
<PRE>
public static int <B>getFirstChildPosOfStep</B>(int&nbsp;opPos)</PRE>
<DL>
<DD>Get the first child position of a given location step.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPos</CODE> - Position of location step in the location map.<DT><B>Returns:</B><DD>The first child position of the step.</DL>
</DD>
</DL>
<HR>

<A NAME="getStepTestType(int)"><!-- --></A><H3>
getStepTestType</H3>
<PRE>
public int <B>getStepTestType</B>(int&nbsp;opPosOfStep)</PRE>
<DL>
<DD>Get the test type of the step, i.e. NODETYPE_XXX value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPosOfStep</CODE> - The position of the FROM_XXX step.<DT><B>Returns:</B><DD>NODETYPE_XXX value.</DL>
</DD>
</DL>
<HR>

<A NAME="getStepNS(int)"><!-- --></A><H3>
getStepNS</H3>
<PRE>
public java.lang.String <B>getStepNS</B>(int&nbsp;opPosOfStep)</PRE>
<DL>
<DD>Get the namespace of the step.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPosOfStep</CODE> - The position of the FROM_XXX step.<DT><B>Returns:</B><DD>The step's namespace, NodeTest.WILD, or null for null namespace.</DL>
</DD>
</DL>
<HR>

<A NAME="getStepLocalName(int)"><!-- --></A><H3>
getStepLocalName</H3>
<PRE>
public java.lang.String <B>getStepLocalName</B>(int&nbsp;opPosOfStep)</PRE>
<DL>
<DD>Get the local name of the step.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>opPosOfStep</CODE> - The position of the FROM_XXX step.<DT><B>Returns:</B><DD>OpCodes.EMPTY, OpCodes.ELEMWILDCARD, or the local name.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/OpMap.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/xpath/compiler/OpCodes.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xpath/compiler/PsuedoNames.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="OpMap.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
Copyright  2000 Apache XML Project. All Rights Reserved.
</BODY>
</HTML>