[120] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:55 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | Token (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="Token (Hadoop 0.20.1 API)"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Token.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/SimpleCharStream.html" title="class in org.apache.hadoop.record.compiler.generated"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/TokenMgrError.html" title="class in org.apache.hadoop.record.compiler.generated"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../../../index.html?org/apache/hadoop/record/compiler/generated/Token.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="Token.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.record.compiler.generated</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class Token</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.record.compiler.generated.Token</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>Token</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
| 101 | </PRE> |
---|
| 102 | |
---|
| 103 | <P> |
---|
| 104 | Describes the input token stream. |
---|
| 105 | <P> |
---|
| 106 | |
---|
| 107 | <P> |
---|
| 108 | <HR> |
---|
| 109 | |
---|
| 110 | <P> |
---|
| 111 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 112 | |
---|
| 113 | <A NAME="field_summary"><!-- --></A> |
---|
| 114 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 115 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 116 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 117 | <B>Field Summary</B></FONT></TH> |
---|
| 118 | </TR> |
---|
| 119 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 120 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 121 | <CODE> int</CODE></FONT></TD> |
---|
| 122 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#beginColumn">beginColumn</A></B></CODE> |
---|
| 123 | |
---|
| 124 | <BR> |
---|
| 125 | beginLine and beginColumn describe the position of the first character |
---|
| 126 | of this token; endLine and endColumn describe the position of the |
---|
| 127 | last character of this token.</TD> |
---|
| 128 | </TR> |
---|
| 129 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 130 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 131 | <CODE> int</CODE></FONT></TD> |
---|
| 132 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#beginLine">beginLine</A></B></CODE> |
---|
| 133 | |
---|
| 134 | <BR> |
---|
| 135 | beginLine and beginColumn describe the position of the first character |
---|
| 136 | of this token; endLine and endColumn describe the position of the |
---|
| 137 | last character of this token.</TD> |
---|
| 138 | </TR> |
---|
| 139 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 140 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 141 | <CODE> int</CODE></FONT></TD> |
---|
| 142 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#endColumn">endColumn</A></B></CODE> |
---|
| 143 | |
---|
| 144 | <BR> |
---|
| 145 | beginLine and beginColumn describe the position of the first character |
---|
| 146 | of this token; endLine and endColumn describe the position of the |
---|
| 147 | last character of this token.</TD> |
---|
| 148 | </TR> |
---|
| 149 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 150 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 151 | <CODE> int</CODE></FONT></TD> |
---|
| 152 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#endLine">endLine</A></B></CODE> |
---|
| 153 | |
---|
| 154 | <BR> |
---|
| 155 | beginLine and beginColumn describe the position of the first character |
---|
| 156 | of this token; endLine and endColumn describe the position of the |
---|
| 157 | last character of this token.</TD> |
---|
| 158 | </TR> |
---|
| 159 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 160 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 161 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 162 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#image">image</A></B></CODE> |
---|
| 163 | |
---|
| 164 | <BR> |
---|
| 165 | The string image of the token.</TD> |
---|
| 166 | </TR> |
---|
| 167 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 168 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 169 | <CODE> int</CODE></FONT></TD> |
---|
| 170 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#kind">kind</A></B></CODE> |
---|
| 171 | |
---|
| 172 | <BR> |
---|
| 173 | An integer that describes the kind of this token.</TD> |
---|
| 174 | </TR> |
---|
| 175 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 176 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 177 | <CODE> <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html" title="class in org.apache.hadoop.record.compiler.generated">Token</A></CODE></FONT></TD> |
---|
| 178 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#next">next</A></B></CODE> |
---|
| 179 | |
---|
| 180 | <BR> |
---|
| 181 | A reference to the next regular (non-special) token from the input |
---|
| 182 | stream.</TD> |
---|
| 183 | </TR> |
---|
| 184 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 186 | <CODE> <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html" title="class in org.apache.hadoop.record.compiler.generated">Token</A></CODE></FONT></TD> |
---|
| 187 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#specialToken">specialToken</A></B></CODE> |
---|
| 188 | |
---|
| 189 | <BR> |
---|
| 190 | This field is used to access special tokens that occur prior to this |
---|
| 191 | token, but after the immediately preceding regular (non-special) token.</TD> |
---|
| 192 | </TR> |
---|
| 193 | </TABLE> |
---|
| 194 | |
---|
| 195 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 196 | |
---|
| 197 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 198 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 199 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 200 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 201 | <B>Constructor Summary</B></FONT></TH> |
---|
| 202 | </TR> |
---|
| 203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 204 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#Token()">Token</A></B>()</CODE> |
---|
| 205 | |
---|
| 206 | <BR> |
---|
| 207 | </TD> |
---|
| 208 | </TR> |
---|
| 209 | </TABLE> |
---|
| 210 | |
---|
| 211 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 212 | |
---|
| 213 | <A NAME="method_summary"><!-- --></A> |
---|
| 214 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 215 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 216 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 217 | <B>Method Summary</B></FONT></TH> |
---|
| 218 | </TR> |
---|
| 219 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 220 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 221 | <CODE>static <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html" title="class in org.apache.hadoop.record.compiler.generated">Token</A></CODE></FONT></TD> |
---|
| 222 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#newToken(int)">newToken</A></B>(int ofKind)</CODE> |
---|
| 223 | |
---|
| 224 | <BR> |
---|
| 225 | Returns a new Token object, by default.</TD> |
---|
| 226 | </TR> |
---|
| 227 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 228 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 229 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 230 | <TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html#toString()">toString</A></B>()</CODE> |
---|
| 231 | |
---|
| 232 | <BR> |
---|
| 233 | Returns the image.</TD> |
---|
| 234 | </TR> |
---|
| 235 | </TABLE> |
---|
| 236 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 237 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 238 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 239 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 243 | </TR> |
---|
| 244 | </TABLE> |
---|
| 245 | |
---|
| 246 | <P> |
---|
| 247 | |
---|
| 248 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 249 | |
---|
| 250 | <A NAME="field_detail"><!-- --></A> |
---|
| 251 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 252 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 253 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 254 | <B>Field Detail</B></FONT></TH> |
---|
| 255 | </TR> |
---|
| 256 | </TABLE> |
---|
| 257 | |
---|
| 258 | <A NAME="kind"><!-- --></A><H3> |
---|
| 259 | kind</H3> |
---|
| 260 | <PRE> |
---|
| 261 | public int <B>kind</B></PRE> |
---|
| 262 | <DL> |
---|
| 263 | <DD>An integer that describes the kind of this token. This numbering |
---|
| 264 | system is determined by JavaCCParser, and a table of these numbers is |
---|
| 265 | stored in the file ...Constants.java. |
---|
| 266 | <P> |
---|
| 267 | <DL> |
---|
| 268 | </DL> |
---|
| 269 | </DL> |
---|
| 270 | <HR> |
---|
| 271 | |
---|
| 272 | <A NAME="beginLine"><!-- --></A><H3> |
---|
| 273 | beginLine</H3> |
---|
| 274 | <PRE> |
---|
| 275 | public int <B>beginLine</B></PRE> |
---|
| 276 | <DL> |
---|
| 277 | <DD>beginLine and beginColumn describe the position of the first character |
---|
| 278 | of this token; endLine and endColumn describe the position of the |
---|
| 279 | last character of this token. |
---|
| 280 | <P> |
---|
| 281 | <DL> |
---|
| 282 | </DL> |
---|
| 283 | </DL> |
---|
| 284 | <HR> |
---|
| 285 | |
---|
| 286 | <A NAME="beginColumn"><!-- --></A><H3> |
---|
| 287 | beginColumn</H3> |
---|
| 288 | <PRE> |
---|
| 289 | public int <B>beginColumn</B></PRE> |
---|
| 290 | <DL> |
---|
| 291 | <DD>beginLine and beginColumn describe the position of the first character |
---|
| 292 | of this token; endLine and endColumn describe the position of the |
---|
| 293 | last character of this token. |
---|
| 294 | <P> |
---|
| 295 | <DL> |
---|
| 296 | </DL> |
---|
| 297 | </DL> |
---|
| 298 | <HR> |
---|
| 299 | |
---|
| 300 | <A NAME="endLine"><!-- --></A><H3> |
---|
| 301 | endLine</H3> |
---|
| 302 | <PRE> |
---|
| 303 | public int <B>endLine</B></PRE> |
---|
| 304 | <DL> |
---|
| 305 | <DD>beginLine and beginColumn describe the position of the first character |
---|
| 306 | of this token; endLine and endColumn describe the position of the |
---|
| 307 | last character of this token. |
---|
| 308 | <P> |
---|
| 309 | <DL> |
---|
| 310 | </DL> |
---|
| 311 | </DL> |
---|
| 312 | <HR> |
---|
| 313 | |
---|
| 314 | <A NAME="endColumn"><!-- --></A><H3> |
---|
| 315 | endColumn</H3> |
---|
| 316 | <PRE> |
---|
| 317 | public int <B>endColumn</B></PRE> |
---|
| 318 | <DL> |
---|
| 319 | <DD>beginLine and beginColumn describe the position of the first character |
---|
| 320 | of this token; endLine and endColumn describe the position of the |
---|
| 321 | last character of this token. |
---|
| 322 | <P> |
---|
| 323 | <DL> |
---|
| 324 | </DL> |
---|
| 325 | </DL> |
---|
| 326 | <HR> |
---|
| 327 | |
---|
| 328 | <A NAME="image"><!-- --></A><H3> |
---|
| 329 | image</H3> |
---|
| 330 | <PRE> |
---|
| 331 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>image</B></PRE> |
---|
| 332 | <DL> |
---|
| 333 | <DD>The string image of the token. |
---|
| 334 | <P> |
---|
| 335 | <DL> |
---|
| 336 | </DL> |
---|
| 337 | </DL> |
---|
| 338 | <HR> |
---|
| 339 | |
---|
| 340 | <A NAME="next"><!-- --></A><H3> |
---|
| 341 | next</H3> |
---|
| 342 | <PRE> |
---|
| 343 | public <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html" title="class in org.apache.hadoop.record.compiler.generated">Token</A> <B>next</B></PRE> |
---|
| 344 | <DL> |
---|
| 345 | <DD>A reference to the next regular (non-special) token from the input |
---|
| 346 | stream. If this is the last token from the input stream, or if the |
---|
| 347 | token manager has not read tokens beyond this one, this field is |
---|
| 348 | set to null. This is true only if this token is also a regular |
---|
| 349 | token. Otherwise, see below for a description of the contents of |
---|
| 350 | this field. |
---|
| 351 | <P> |
---|
| 352 | <DL> |
---|
| 353 | </DL> |
---|
| 354 | </DL> |
---|
| 355 | <HR> |
---|
| 356 | |
---|
| 357 | <A NAME="specialToken"><!-- --></A><H3> |
---|
| 358 | specialToken</H3> |
---|
| 359 | <PRE> |
---|
| 360 | public <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html" title="class in org.apache.hadoop.record.compiler.generated">Token</A> <B>specialToken</B></PRE> |
---|
| 361 | <DL> |
---|
| 362 | <DD>This field is used to access special tokens that occur prior to this |
---|
| 363 | token, but after the immediately preceding regular (non-special) token. |
---|
| 364 | If there are no such special tokens, this field is set to null. |
---|
| 365 | When there are more than one such special token, this field refers |
---|
| 366 | to the last of these special tokens, which in turn refers to the next |
---|
| 367 | previous special token through its specialToken field, and so on |
---|
| 368 | until the first special token (whose specialToken field is null). |
---|
| 369 | The next fields of special tokens refer to other special tokens that |
---|
| 370 | immediately follow it (without an intervening regular token). If there |
---|
| 371 | is no such token, this field is null. |
---|
| 372 | <P> |
---|
| 373 | <DL> |
---|
| 374 | </DL> |
---|
| 375 | </DL> |
---|
| 376 | |
---|
| 377 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 378 | |
---|
| 379 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 380 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 381 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 382 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 383 | <B>Constructor Detail</B></FONT></TH> |
---|
| 384 | </TR> |
---|
| 385 | </TABLE> |
---|
| 386 | |
---|
| 387 | <A NAME="Token()"><!-- --></A><H3> |
---|
| 388 | Token</H3> |
---|
| 389 | <PRE> |
---|
| 390 | public <B>Token</B>()</PRE> |
---|
| 391 | <DL> |
---|
| 392 | </DL> |
---|
| 393 | |
---|
| 394 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 395 | |
---|
| 396 | <A NAME="method_detail"><!-- --></A> |
---|
| 397 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 398 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 399 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 400 | <B>Method Detail</B></FONT></TH> |
---|
| 401 | </TR> |
---|
| 402 | </TABLE> |
---|
| 403 | |
---|
| 404 | <A NAME="toString()"><!-- --></A><H3> |
---|
| 405 | toString</H3> |
---|
| 406 | <PRE> |
---|
| 407 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> |
---|
| 408 | <DL> |
---|
| 409 | <DD>Returns the image. |
---|
| 410 | <P> |
---|
| 411 | <DD><DL> |
---|
| 412 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
| 413 | </DD> |
---|
| 414 | <DD><DL> |
---|
| 415 | </DL> |
---|
| 416 | </DD> |
---|
| 417 | </DL> |
---|
| 418 | <HR> |
---|
| 419 | |
---|
| 420 | <A NAME="newToken(int)"><!-- --></A><H3> |
---|
| 421 | newToken</H3> |
---|
| 422 | <PRE> |
---|
| 423 | public static final <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/Token.html" title="class in org.apache.hadoop.record.compiler.generated">Token</A> <B>newToken</B>(int ofKind)</PRE> |
---|
| 424 | <DL> |
---|
| 425 | <DD>Returns a new Token object, by default. However, if you want, you |
---|
| 426 | can create and return subclass objects based on the value of ofKind. |
---|
| 427 | Simply add the cases to the switch for all those special cases. |
---|
| 428 | For example, if you have a subclass of Token called IDToken that |
---|
| 429 | you want to create if ofKind is ID, simlpy add something like : |
---|
| 430 | |
---|
| 431 | case MyParserConstants.ID : return new IDToken(); |
---|
| 432 | |
---|
| 433 | to the following switch statement. Then you can cast matchedToken |
---|
| 434 | variable to the appropriate type and use it in your lexical actions. |
---|
| 435 | <P> |
---|
| 436 | <DD><DL> |
---|
| 437 | </DL> |
---|
| 438 | </DD> |
---|
| 439 | </DL> |
---|
| 440 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 441 | <HR> |
---|
| 442 | |
---|
| 443 | |
---|
| 444 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 445 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 446 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 447 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 448 | <TR> |
---|
| 449 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 450 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 451 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 452 | <TR ALIGN="center" VALIGN="top"> |
---|
| 453 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 454 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 455 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 456 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Token.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 457 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 458 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 459 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 460 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 461 | </TR> |
---|
| 462 | </TABLE> |
---|
| 463 | </TD> |
---|
| 464 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 465 | </EM> |
---|
| 466 | </TD> |
---|
| 467 | </TR> |
---|
| 468 | |
---|
| 469 | <TR> |
---|
| 470 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 471 | <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/SimpleCharStream.html" title="class in org.apache.hadoop.record.compiler.generated"><B>PREV CLASS</B></A> |
---|
| 472 | <A HREF="../../../../../../org/apache/hadoop/record/compiler/generated/TokenMgrError.html" title="class in org.apache.hadoop.record.compiler.generated"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 473 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 474 | <A HREF="../../../../../../index.html?org/apache/hadoop/record/compiler/generated/Token.html" target="_top"><B>FRAMES</B></A> |
---|
| 475 | <A HREF="Token.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 476 | <SCRIPT type="text/javascript"> |
---|
| 477 | <!-- |
---|
| 478 | if(window==top) { |
---|
| 479 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 480 | } |
---|
| 481 | //--> |
---|
| 482 | </SCRIPT> |
---|
| 483 | <NOSCRIPT> |
---|
| 484 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 485 | </NOSCRIPT> |
---|
| 486 | |
---|
| 487 | |
---|
| 488 | </FONT></TD> |
---|
| 489 | </TR> |
---|
| 490 | <TR> |
---|
| 491 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 492 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 493 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 494 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 495 | </TR> |
---|
| 496 | </TABLE> |
---|
| 497 | <A NAME="skip-navbar_bottom"></A> |
---|
| 498 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 499 | |
---|
| 500 | <HR> |
---|
| 501 | Copyright © 2009 The Apache Software Foundation |
---|
| 502 | </BODY> |
---|
| 503 | </HTML> |
---|