lexscan.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,030 行 · 第 1/3 页

HTML
1,030
字号
public static java.lang.String <B>concExc</B>(java.lang.Object&nbsp;a,                                       java.lang.Object&nbsp;b)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="yyclose()"><!-- --></A><H3>yyclose</H3><PRE>public final void <B>yyclose</B>()                   throws java.io.IOException</PRE><DL><DD>Closes the input stream.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="yypushStream(java.io.Reader)"><!-- --></A><H3>yypushStream</H3><PRE>public final void <B>yypushStream</B>(java.io.Reader&nbsp;reader)</PRE><DL><DD>Stores the current input stream on a stack, and reads from a new stream. Lexical state, line, char, and column counting remain untouched. The current input stream can be restored with yypopstream (usually in an <<EOF>> action).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the new input stream to read from<DT><B>See Also:</B><DD><A HREF="../../../../weka/core/parser/JFlex/LexScan.html#yypopStream()"><CODE>yypopStream()</CODE></A></DL></DD></DL><HR><A NAME="yypopStream()"><!-- --></A><H3>yypopStream</H3><PRE>public final void <B>yypopStream</B>()                       throws java.io.IOException</PRE><DL><DD>Closes the current input stream and continues to read from the one on top of the stream stack.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.util.EmptyStackException</CODE> - if there is no further stream to read from.<DD><CODE>java.io.IOException</CODE> - if there was an error in closing the stream.<DT><B>See Also:</B><DD><A HREF="../../../../weka/core/parser/JFlex/LexScan.html#yypushStream(java.io.Reader)"><CODE>yypushStream(java.io.Reader)</CODE></A></DL></DD></DL><HR><A NAME="yymoreStreams()"><!-- --></A><H3>yymoreStreams</H3><PRE>public final boolean <B>yymoreStreams</B>()</PRE><DL><DD>Returns true iff there are still streams left  to read from on the stream stack.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="yyreset(java.io.Reader)"><!-- --></A><H3>yyreset</H3><PRE>public final void <B>yyreset</B>(java.io.Reader&nbsp;reader)</PRE><DL><DD>Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream  <b>cannot</b> be reused (internal buffer is discarded and lost). Lexical state is set to <tt>ZZ_INITIAL</tt>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the new input stream<DT><B>See Also:</B><DD><A HREF="../../../../weka/core/parser/JFlex/LexScan.html#yypushStream(java.io.Reader)"><CODE>yypushStream(java.io.Reader)</CODE></A>, <A HREF="../../../../weka/core/parser/JFlex/LexScan.html#yypopStream()"><CODE>yypopStream()</CODE></A></DL></DD></DL><HR><A NAME="yystate()"><!-- --></A><H3>yystate</H3><PRE>public final int <B>yystate</B>()</PRE><DL><DD>Returns the current lexical state.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="yybegin(int)"><!-- --></A><H3>yybegin</H3><PRE>public final void <B>yybegin</B>(int&nbsp;newState)</PRE><DL><DD>Enters a new lexical state<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newState</CODE> - the new lexical state</DL></DD></DL><HR><A NAME="yytext()"><!-- --></A><H3>yytext</H3><PRE>public final java.lang.String <B>yytext</B>()</PRE><DL><DD>Returns the text matched by the current regular expression.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="yycharat(int)"><!-- --></A><H3>yycharat</H3><PRE>public final char <B>yycharat</B>(int&nbsp;pos)</PRE><DL><DD>Returns the character at position <tt>pos</tt> from the  matched text.   It is equivalent to yytext().charAt(pos), but faster<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position of the character to fetch.             A value from 0 to yylength()-1.<DT><B>Returns:</B><DD>the character at position pos</DL></DD></DL><HR><A NAME="yylength()"><!-- --></A><H3>yylength</H3><PRE>public final int <B>yylength</B>()</PRE><DL><DD>Returns the length of the matched text region.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="yypushback(int)"><!-- --></A><H3>yypushback</H3><PRE>public void <B>yypushback</B>(int&nbsp;number)</PRE><DL><DD>Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>number</CODE> - the number of characters to be read again.                This number must not be greater than yylength()!</DL></DD></DL><HR><A NAME="next_token()"><!-- --></A><H3>next_token</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/runtime/Symbol.html" title="class in weka.core.parser.java_cup.runtime">Symbol</A> <B>next_token</B>()                  throws java.io.IOException</PRE><DL><DD>Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/Scanner.html#next_token()">next_token</A></CODE> in interface <CODE><A HREF="../../../../weka/core/parser/java_cup/runtime/Scanner.html" title="interface in weka.core.parser.java_cup.runtime">Scanner</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the next token<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if any I/O-Error occurs</DL></DD></DL><HR><A NAME="debug_next_token()"><!-- --></A><H3>debug_next_token</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/runtime/Symbol.html" title="class in weka.core.parser.java_cup.runtime">Symbol</A> <B>debug_next_token</B>()                        throws java.io.IOException</PRE><DL><DD>Same as next_token but also prints the token to standard out for debugging. This code was contributed by Karl Meissner <meissnersd@yahoo.com><P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;argv)</PRE><DL><DD>Runs the scanner on input files. This main method is the debugging routine for the scanner. It prints debugging information about each returned token to System.out until the end of file is reached, or an error occured.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - the command line, contains the filenames to run               the scanner on.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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="../../../../weka/core/parser/JFlex/LexParse.html" title="class in weka.core.parser.JFlex"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/core/parser/JFlex/MacroException.html" title="class in weka.core.parser.JFlex"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?weka/core/parser/JFlex/LexScan.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="LexScan.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?