lexer.html

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

HTML
629
字号
<PRE>public static final int <B>CODESEG</B></PRE><DL><DD>lexical states<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.core.parser.java_cup.Lexer.CODESEG">Constant Field Values</A></DL></DL><HR><A NAME="YYINITIAL"><!-- --></A><H3>YYINITIAL</H3><PRE>public static final int <B>YYINITIAL</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.core.parser.java_cup.Lexer.YYINITIAL">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Lexer(weka.core.parser.java_cup.runtime.ComplexSymbolFactory)"><!-- --></A><H3>Lexer</H3><PRE>public <B>Lexer</B>(<A HREF="../../../../weka/core/parser/java_cup/runtime/ComplexSymbolFactory.html" title="class in weka.core.parser.java_cup.runtime">ComplexSymbolFactory</A>&nbsp;sf)</PRE><DL></DL><HR><A NAME="Lexer(java.io.Reader)"><!-- --></A><H3>Lexer</H3><PRE>public <B>Lexer</B>(java.io.Reader&nbsp;in)</PRE><DL><DD>Creates a new scanner There is also a java.io.InputStream version of this constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the java.io.Reader to read input from.</DL></DL><HR><A NAME="Lexer(java.io.InputStream)"><!-- --></A><H3>Lexer</H3><PRE>public <B>Lexer</B>(java.io.InputStream&nbsp;in)</PRE><DL><DD>Creates a new scanner. There is also java.io.Reader version of this constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the java.io.Inputstream to read input from.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="symbol(java.lang.String, int)"><!-- --></A><H3>symbol</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>symbol</B>(java.lang.String&nbsp;name,                     int&nbsp;code)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="symbol(java.lang.String, int, java.lang.String)"><!-- --></A><H3>symbol</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>symbol</B>(java.lang.String&nbsp;name,                     int&nbsp;code,                     java.lang.String&nbsp;lexem)</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="yyreset(java.io.Reader)"><!-- --></A><H3>yyreset</H3><PRE>public final void <B>yyreset</B>(java.io.Reader&nbsp;reader)                   throws java.io.IOException</PRE><DL><DD>Closes the current stream, and resets the scanner to read from a new input stream. 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>YY_INITIAL</tt>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the new input stream<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></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="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>IOException</CODE> - if any I/O-Error occurs</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/java_cup/lalr_transition.html" title="class in weka.core.parser.java_cup"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html" title="class in weka.core.parser.java_cup"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?weka/core/parser/java_cup/Lexer.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Lexer.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 + -
显示快捷键?