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

📄 lalr_item.html

📁 数据挖掘的最常用工具。由于开源
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TABLE><A NAME="lalr_item(weka.core.parser.java_cup.production, int, weka.core.parser.java_cup.terminal_set)"><!-- --></A><H3>lalr_item</H3><PRE>public <B>lalr_item</B>(<A HREF="../../../../weka/core/parser/java_cup/production.html" title="class in weka.core.parser.java_cup">production</A>&nbsp;prod,                 int&nbsp;pos,                 <A HREF="../../../../weka/core/parser/java_cup/terminal_set.html" title="class in weka.core.parser.java_cup">terminal_set</A>&nbsp;look)          throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Full constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>prod</CODE> - the production for the item.<DD><CODE>pos</CODE> - the position of the "dot" within the production.<DD><CODE>look</CODE> - the set of lookahead symbols.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></DL></DL><HR><A NAME="lalr_item(weka.core.parser.java_cup.production, weka.core.parser.java_cup.terminal_set)"><!-- --></A><H3>lalr_item</H3><PRE>public <B>lalr_item</B>(<A HREF="../../../../weka/core/parser/java_cup/production.html" title="class in weka.core.parser.java_cup">production</A>&nbsp;prod,                 <A HREF="../../../../weka/core/parser/java_cup/terminal_set.html" title="class in weka.core.parser.java_cup">terminal_set</A>&nbsp;look)          throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Constructor with default position (dot at start).<P><DL><DT><B>Parameters:</B><DD><CODE>prod</CODE> - the production for the item.<DD><CODE>look</CODE> - the set of lookahead symbols.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></DL></DL><HR><A NAME="lalr_item(weka.core.parser.java_cup.production)"><!-- --></A><H3>lalr_item</H3><PRE>public <B>lalr_item</B>(<A HREF="../../../../weka/core/parser/java_cup/production.html" title="class in weka.core.parser.java_cup">production</A>&nbsp;prod)          throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Constructor with default position and empty lookahead set.<P><DL><DT><B>Parameters:</B><DD><CODE>prod</CODE> - the production for the item.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></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="lookahead()"><!-- --></A><H3>lookahead</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/terminal_set.html" title="class in weka.core.parser.java_cup">terminal_set</A> <B>lookahead</B>()</PRE><DL><DD>The lookahead symbols of the item.<P><DD><DL></DL></DD></DL><HR><A NAME="propagate_items()"><!-- --></A><H3>propagate_items</H3><PRE>public java.util.Stack <B>propagate_items</B>()</PRE><DL><DD>Links to items that the lookahead needs to be propagated to<P><DD><DL></DL></DD></DL><HR><A NAME="add_propagate(weka.core.parser.java_cup.lalr_item)"><!-- --></A><H3>add_propagate</H3><PRE>public void <B>add_propagate</B>(<A HREF="../../../../weka/core/parser/java_cup/lalr_item.html" title="class in weka.core.parser.java_cup">lalr_item</A>&nbsp;prop_to)</PRE><DL><DD>Add a new item to the set of items we propagate to.<P><DD><DL></DL></DD></DL><HR><A NAME="propagate_lookaheads(weka.core.parser.java_cup.terminal_set)"><!-- --></A><H3>propagate_lookaheads</H3><PRE>public void <B>propagate_lookaheads</B>(<A HREF="../../../../weka/core/parser/java_cup/terminal_set.html" title="class in weka.core.parser.java_cup">terminal_set</A>&nbsp;incoming)                          throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Propagate incoming lookaheads through this item to others need to   be changed.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></DL></DD></DL><HR><A NAME="shift()"><!-- --></A><H3>shift</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/lalr_item.html" title="class in weka.core.parser.java_cup">lalr_item</A> <B>shift</B>()                throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Produce the new lalr_item that results from shifting the dot one position  to the right.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></DL></DD></DL><HR><A NAME="calc_lookahead(weka.core.parser.java_cup.terminal_set)"><!-- --></A><H3>calc_lookahead</H3><PRE>public <A HREF="../../../../weka/core/parser/java_cup/terminal_set.html" title="class in weka.core.parser.java_cup">terminal_set</A> <B>calc_lookahead</B>(<A HREF="../../../../weka/core/parser/java_cup/terminal_set.html" title="class in weka.core.parser.java_cup">terminal_set</A>&nbsp;lookahead_after)                            throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Calculate lookahead representing symbols that could appear after the   symbol that the dot is currently in front of.  Note: this routine must   not be invoked before first sets and nullability has been calculated   for all non terminals.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></DL></DD></DL><HR><A NAME="lookahead_visible()"><!-- --></A><H3>lookahead_visible</H3><PRE>public boolean <B>lookahead_visible</B>()                          throws <A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></PRE><DL><DD>Determine if everything from the symbol one beyond the dot all the   way to the  end of the right hand side is nullable.  This would indicate  that the lookahead of this item must be included in the lookaheads of  all items produced as a closure of this item.  Note: this routine should   not be invoked until after first sets and nullability have been   calculated for all non terminals.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/internal_error.html" title="class in weka.core.parser.java_cup">internal_error</A></CODE></DL></DD></DL><HR><A NAME="equals(weka.core.parser.java_cup.lalr_item)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../../weka/core/parser/java_cup/lalr_item.html" title="class in weka.core.parser.java_cup">lalr_item</A>&nbsp;other)</PRE><DL><DD>Equality comparison -- here we only require the cores to be equal since   we need to do sets of items based only on core equality (ignoring    lookahead sets).<P><DD><DL></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE><DL><DD>Generic equality comparison.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html" title="class in weka.core.parser.java_cup">lr_item_core</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Return a hash code -- here we only hash the core since we only test core  matching in LALR items.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html" title="class in weka.core.parser.java_cup">lr_item_core</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Convert to string.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../weka/core/parser/java_cup/lr_item_core.html" title="class in weka.core.parser.java_cup">lr_item_core</A></CODE></DL></DD><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=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/internal_error.html" title="class in weka.core.parser.java_cup"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/core/parser/java_cup/lalr_item_set.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/lalr_item.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="lalr_item.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;FIELD&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;FIELD&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 + -