⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parseexception.html

📁 java bayes的bin文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="specialConstructor"><!-- --></A><H3>specialConstructor</H3><PRE>protected boolean <B>specialConstructor</B></PRE><DL><DD>This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).<P><DL></DL></DL><HR><A NAME="currentToken"><!-- --></A><H3>currentToken</H3><PRE>public <A HREF="../../Parsers/XMLBIFv03/Token.html" title="class in Parsers.XMLBIFv03">Token</A> <B>currentToken</B></PRE><DL><DD>This is the last token that has been consumed successfully.  If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.<P><DL></DL></DL><HR><A NAME="expectedTokenSequences"><!-- --></A><H3>expectedTokenSequences</H3><PRE>public int[][] <B>expectedTokenSequences</B></PRE><DL><DD>Each entry in this array is an array of integers.  Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse.<P><DL></DL></DL><HR><A NAME="tokenImage"><!-- --></A><H3>tokenImage</H3><PRE>public java.lang.String[] <B>tokenImage</B></PRE><DL><DD>This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred.  This array is defined in the generated ...Constants interface.<P><DL></DL></DL><HR><A NAME="eol"><!-- --></A><H3>eol</H3><PRE>protected java.lang.String <B>eol</B></PRE><DL><DD>The end of line string for this machine.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ParseException(Parsers.XMLBIFv03.Token, int[][], java.lang.String[])"><!-- --></A><H3>ParseException</H3><PRE>public <B>ParseException</B>(<A HREF="../../Parsers/XMLBIFv03/Token.html" title="class in Parsers.XMLBIFv03">Token</A>&nbsp;currentTokenVal,                      int[][]&nbsp;expectedTokenSequencesVal,                      java.lang.String[]&nbsp;tokenImageVal)</PRE><DL><DD>This constructor is used by the method "generateParseException" in the generated parser.  Calling this constructor generates a new object of this type with the fields "currentToken", "expectedTokenSequences", and "tokenImage" set.  The boolean flag "specialConstructor" is also set to true to indicate that this constructor was used to create this object. This constructor calls its super class with the empty string to force the "toString" method of parent class "Throwable" to print the error message in the form:     ParseException: <result of getMessage><P></DL><HR><A NAME="ParseException()"><!-- --></A><H3>ParseException</H3><PRE>public <B>ParseException</B>()</PRE><DL><DD>The following constructors are for use by you for whatever purpose you can think of.  Constructing the exception in this manner makes the exception behave in the normal way - i.e., as documented in the class "Throwable".  The fields "errorToken", "expectedTokenSequences", and "tokenImage" do not contain relevant information.  The JavaCC generated code does not use these constructors.<P></DL><HR><A NAME="ParseException(java.lang.String)"><!-- --></A><H3>ParseException</H3><PRE>public <B>ParseException</B>(java.lang.String&nbsp;message)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getMessage()"><!-- --></A><H3>getMessage</H3><PRE>public java.lang.String <B>getMessage</B>()</PRE><DL><DD>This method has the standard behavior when this object has been created using the standard constructors.  Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it.  If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.<P><DD><DL></DL></DD></DL><HR><A NAME="add_escapes(java.lang.String)"><!-- --></A><H3>add_escapes</H3><PRE>protected java.lang.String <B>add_escapes</B>(java.lang.String&nbsp;str)</PRE><DL><DD>Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.<P><DD><DL></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=3 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>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>                <a href="http://jbnc.sourceforge.net">                <img src="http://sourceforge.net/sflogo.php?group_id=49871&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo">                </a>            </EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../Parsers/XMLBIFv03/ASCII_UCodeESC_CharStream.html" title="class in Parsers.XMLBIFv03"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../Parsers/XMLBIFv03/Token.html" title="class in Parsers.XMLBIFv03"><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="ParseException.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -