<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_01) on Mon Apr 23 21:09:00 GMT 2007 -->
<TITLE>
lalr_item
</TITLE>
<META NAME="keywords" CONTENT="java_cup.lalr_item class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="lalr_item";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" 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_top_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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/lalr_item.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../java_cup/internal_error.html" title="class in java_cup"><B>PREV CLASS</B></A>
<A HREF="../java_cup/lalr_item_set.html" title="class in java_cup"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?java_cup/lalr_item.html" target="_top"><B>FRAMES</B></A>
<A HREF="lalr_item.html" target="_top"><B>NO FRAMES</B></A>
<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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
java_cup</FONT>
<BR>
Class lalr_item</H2>
<PRE>
java.lang.Object
<IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../java_cup/lr_item_core.html" title="class in java_cup">java_cup.lr_item_core</A>
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>java_cup.lalr_item</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>lalr_item</B><DT>extends <A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></DL>
</PRE>
<P>
This class represents an LALR item. Each LALR item consists of
a production, a "dot" at a position within that production, and
a set of lookahead symbols (terminal). (The first two of these parts
are provide by the super class). An item is designed to represent a
configuration that the parser may be in. For example, an item of the
form: <pre>
[A ::= B * C d E , {a,b,c}]
</pre>
indicates that the parser is in the middle of parsing the production <pre>
A ::= B C d E
</pre>
that B has already been parsed, and that we will expect to see a lookahead
of either a, b, or c once the complete RHS of this production has been
found.<p>
Items may initially be missing some items from their lookahead sets.
Links are maintained from each item to the set of items that would need
to be updated if symbols are added to its lookahead set. During
"lookahead propagation", we add symbols to various lookahead sets and
propagate these changes across these dependency links as needed.
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>last updated: 11/25/95</DD>
<DT><B>Author:</B></DT>
<DD>Scott Hudson</DD>
<DT><B>See Also:</B><DD><A HREF="../java_cup/lalr_item_set.html" title="class in java_cup"><CODE>lalr_item_set</CODE></A>,
<A HREF="../java_cup/lalr_state.html" title="class in java_cup"><CODE>lalr_state</CODE></A></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#_lookahead">_lookahead</A></B></CODE>
<BR>
The lookahead symbols of the item.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected java.util.Stack</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#_propagate_items">_propagate_items</A></B></CODE>
<BR>
Links to items that the lookahead needs to be propagated to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#needs_propagation">needs_propagation</A></B></CODE>
<BR>
Flag to indicate that this item needs to propagate its lookahead
(whether it has changed or not).</TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_java_cup.lr_item_core"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class java_cup.<A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../java_cup/lr_item_core.html#_core_hash_cache">_core_hash_cache</A>, <A HREF="../java_cup/lr_item_core.html#_dot_pos">_dot_pos</A>, <A HREF="../java_cup/lr_item_core.html#_symbol_after_dot">_symbol_after_dot</A>, <A HREF="../java_cup/lr_item_core.html#_the_production">_the_production</A></CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#lalr_item(java_cup.production)">lalr_item</A></B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A> prod)</CODE>
<BR>
Constructor with default position and empty lookahead set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#lalr_item(java_cup.production, int, java_cup.terminal_set)">lalr_item</A></B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A> prod,
int pos,
<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> look)</CODE>
<BR>
Full constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#lalr_item(java_cup.production, java_cup.terminal_set)">lalr_item</A></B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A> prod,
<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> look)</CODE>
<BR>
Constructor with default position (dot at start).</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#add_propagate(java_cup.lalr_item)">add_propagate</A></B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A> prop_to)</CODE>
<BR>
Add a new item to the set of items we propagate to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#calc_lookahead(java_cup.terminal_set)">calc_lookahead</A></B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> lookahead_after)</CODE>
<BR>
Calculate lookahead representing symbols that could appear after the
symbol that the dot is currently in front of.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#equals(java_cup.lalr_item)">equals</A></B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A> other)</CODE>
<BR>
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).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object other)</CODE>
<BR>
Generic equality comparison.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#hashCode()">hashCode</A></B>()</CODE>
<BR>
Return a hash code -- here we only hash the core since we only test core
matching in LALR items.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#lookahead_visible()">lookahead_visible</A></B>()</CODE>
<BR>
Determine if everything from the symbol one beyond the dot all the
way to the end of the right hand side is nullable.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#lookahead()">lookahead</A></B>()</CODE>
<BR>
The lookahead symbols of the item.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Stack</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#propagate_items()">propagate_items</A></B>()</CODE>
<BR>
Links to items that the lookahead needs to be propagated to</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#propagate_lookaheads(java_cup.terminal_set)">propagate_lookaheads</A></B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> incoming)</CODE>
<BR>
Propagate incoming lookaheads through this item to others need to
be changed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#shift()">shift</A></B>()</CODE>
<BR>
Produce the new lalr_item that results from shifting the dot one position
to the right.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../java_cup/lalr_item.html#toString()">toString</A></B>()</CODE>
<BR>
Convert to string.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java_cup.lr_item_core"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java_cup.<A HREF="../java_cup/lr_item_core.html" title="class in java_cup">lr_item_core</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../java_cup/lr_item_core.html#core_equals(java_cup.lr_item_core)">core_equals</A>, <A HREF="../java_cup/lr_item_core.html#core_hashCode()">core_hashCode</A>, <A HREF="../java_cup/lr_item_core.html#dot_at_end()">dot_at_end</A>, <A HREF="../java_cup/lr_item_core.html#dot_before_nt()">dot_before_nt</A>, <A HREF="../java_cup/lr_item_core.html#dot_pos()">dot_pos</A>, <A HREF="../java_cup/lr_item_core.html#equals(java_cup.lr_item_core)">equals</A>, <A HREF="../java_cup/lr_item_core.html#obj_hash()">obj_hash</A>, <A HREF="../java_cup/lr_item_core.html#shift_core()">shift_core</A>, <A HREF="../java_cup/lr_item_core.html#symbol_after_dot()">symbol_after_dot</A>, <A HREF="../java_cup/lr_item_core.html#the_production()">the_production</A>, <A HREF="../java_cup/lr_item_core.html#to_simple_string()">to_simple_string</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="_lookahead"><!-- --></A><H3>
_lookahead</H3>
<PRE>
protected <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> <B>_lookahead</B></PRE>
<DL>
<DD>The lookahead symbols of the item.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="_propagate_items"><!-- --></A><H3>
_propagate_items</H3>
<PRE>
protected java.util.Stack <B>_propagate_items</B></PRE>
<DL>
<DD>Links to items that the lookahead needs to be propagated to.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="needs_propagation"><!-- --></A><H3>
needs_propagation</H3>
<PRE>
protected boolean <B>needs_propagation</B></PRE>
<DL>
<DD>Flag to indicate that this item needs to propagate its lookahead
(whether it has changed or not).
<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">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="lalr_item(java_cup.production, int, java_cup.terminal_set)"><!-- --></A><H3>
lalr_item</H3>
<PRE>
public <B>lalr_item</B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A> prod,
int pos,
<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> look)
throws <A HREF="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
</DL>
<HR>
<A NAME="lalr_item(java_cup.production, java_cup.terminal_set)"><!-- --></A><H3>
lalr_item</H3>
<PRE>
public <B>lalr_item</B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A> prod,
<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> look)
throws <A HREF="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
</DL>
<HR>
<A NAME="lalr_item(java_cup.production)"><!-- --></A><H3>
lalr_item</H3>
<PRE>
public <B>lalr_item</B>(<A HREF="../java_cup/production.html" title="class in java_cup">production</A> prod)
throws <A HREF="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in 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="../java_cup/terminal_set.html" title="class in 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(java_cup.lalr_item)"><!-- --></A><H3>
add_propagate</H3>
<PRE>
public void <B>add_propagate</B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A> 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(java_cup.terminal_set)"><!-- --></A><H3>
propagate_lookaheads</H3>
<PRE>
public void <B>propagate_lookaheads</B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> incoming)
throws <A HREF="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="shift()"><!-- --></A><H3>
shift</H3>
<PRE>
public <A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A> <B>shift</B>()
throws <A HREF="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="calc_lookahead(java_cup.terminal_set)"><!-- --></A><H3>
calc_lookahead</H3>
<PRE>
public <A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> <B>calc_lookahead</B>(<A HREF="../java_cup/terminal_set.html" title="class in java_cup">terminal_set</A> lookahead_after)
throws <A HREF="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in 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="../java_cup/internal_error.html" title="class in java_cup">internal_error</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="equals(java_cup.lalr_item)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="../java_cup/lalr_item.html" title="class in java_cup">lalr_item</A> 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 other)</PRE>
<DL>
<DD>Generic equality comparison.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../java_cup/lr_item_core.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../java_cup/lr_item_core.html" title="class in 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="../java_cup/lr_item_core.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../java_cup/lr_item_core.html" title="class in 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="../java_cup/lr_item_core.html#toString()">toString</A></CODE> in class <CODE><A HREF="../java_cup/lr_item_core.html" title="class in 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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/lalr_item.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../java_cup/internal_error.html" title="class in java_cup"><B>PREV CLASS</B></A>
<A HREF="../java_cup/lalr_item_set.html" title="class in java_cup"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?java_cup/lalr_item.html" target="_top"><B>FRAMES</B></A>
<A HREF="lalr_item.html" target="_top"><B>NO FRAMES</B></A>
<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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>