nonassoc_actionpublic class nonassoc_action extends parse_action This class represents a shift/reduce nonassociative error within the
parse table. If action_table element is assign to type
nonassoc_action, it cannot be changed, and signifies that there
is a conflict between shifting and reducing a production and a
terminal that shouldn't be next to each other. |
Constructors Summary |
---|
public nonassoc_action()Simple constructor.
/* don't need to set anything, since it signifies error */
|
Methods Summary |
---|
public boolean | equals(parse_action other)Equality test.
return other != null && other.kind() == NONASSOC;
| public boolean | equals(java.lang.Object other)Generic equality test.
if (other instanceof parse_action)
return equals((parse_action)other);
else
return false;
| public int | hashCode()Compute a hash code.
/* all objects of this class hash together */
return 0xCafe321;
| public int | kind()Quick access to type of action.return NONASSOC;
| public java.lang.String | toString()Convert to string.
return "NONASSOC";
|
|