Methods Summary |
---|
public boolean | equals(com.sun.java_cup.internal.production_part other)Equality comparison.
if (other == null) return false;
/* compare the labels */
if (label() != null)
return label().equals(other.label());
else
return other.label() == null;
|
public boolean | equals(java.lang.Object other)Generic equality comparison.
if (!(other instanceof production_part))
return false;
else
return equals((production_part)other);
|
public int | hashCode()Produce a hash code.
return label()==null ? 0 : label().hashCode();
|
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.
|
public java.lang.String | label()Optional label for referring to the part within an action (null for
no label).return _label;
|
public java.lang.String | toString()Convert to a string.
if (label() != null)
return label() + ":";
else
return " ";
|