| java.lang.Object java_cup.production_part
All known Subclasses: java_cup.symbol_part, java_cup.action_part,
production_part | abstract public class production_part (Code) | | This class represents one part (either a symbol or an action) of a
production. In this base class it contains only an optional label
string that the user can use to refer to the part within actions.
This is an abstract class.
See Also: java_cup.production version: last updated: 11/25/95 author: Scott Hudson |
Field Summary | |
protected String | _label Optional label for referring to the part within an action (null for
no label). |
Method Summary | |
public boolean | equals(production_part other) Equality comparison. | public boolean | equals(Object other) Generic equality comparison. | public int | hashCode() Produce a hash code. | abstract public boolean | is_action() Indicate if this is an action (rather than a symbol). | public String | label() Optional label for referring to the part within an action (null for
no label). | public String | toString() Convert to a string. |
_label | protected String _label(Code) | | Optional label for referring to the part within an action (null for
no label).
|
production_part | public production_part(String lab)(Code) | | Simple constructor.
|
equals | public boolean equals(Object other)(Code) | | Generic equality comparison.
|
hashCode | public int hashCode()(Code) | | Produce a hash code.
|
is_action | abstract public boolean is_action()(Code) | | Indicate if this is an action (rather than a symbol). Here in the
base class, we don't this know yet, so its an abstract method.
|
label | public String label()(Code) | | Optional label for referring to the part within an action (null for
no label).
|
|
|