Package java_cup
Class production_part
java.lang.Object
java_cup.production_part
- Direct Known Subclasses:
action_part
,symbol_part
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.
- Version:
- last updated: 11/25/95
- Author:
- Scott Hudson
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(production_part other) Equality comparison.boolean
Generic equality comparison.int
hashCode()
Produce a hash code.abstract boolean
Indicate if this is an action (rather than a symbol).label()
Optional label for referring to the part within an action (null for no label).toString()
Convert to a string.
-
Field Details
-
_label
Optional label for referring to the part within an action (null for no label).
-
-
Constructor Details
-
production_part
Simple constructor.
-
-
Method Details
-
label
Optional label for referring to the part within an action (null for no label). -
is_action
public abstract boolean is_action()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. -
equals
Equality comparison. -
equals
Generic equality comparison. -
hashCode
public int hashCode()Produce a hash code. -
toString
Convert to a string.
-