Top Description Fields Constructors Methods
java_cup

public Class nonassoc_action

extends parse_action
Class Inheritance

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.
Author
Frank Flannery
Version
last updated: 7/2/96

Field Summary

Inherited from java_cup.parse_action:
ERRORNONASSOCREDUCESHIFT

Constructor Summary

AccessConstructor and Description
public
nonassoc_action()

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(parse_action other)

Overrides java_cup.parse_action.equals.

Equality test.
public boolean
equals(Object
the reference object with which to compare.
other
)

Overrides java_cup.parse_action.equals.

Generic equality test.
public int
hashCode()

Overrides java_cup.parse_action.hashCode.

Compute a hash code.
public int
kind()

Overrides java_cup.parse_action.kind.

Quick access to type of action.
public String
toString()

Overrides java_cup.parse_action.toString.

Convert to string.

Constructor Detail

nonassoc_actionback to summary
public nonassoc_action() throws internal_error

Simple constructor.

Method Detail

equalsback to summary
public boolean equals(parse_action other)

Overrides java_cup.parse_action.equals.

Equality test.

equalsback to summary
public boolean equals(Object other)

Overrides java_cup.parse_action.equals.

Generic equality test.

Parameters
other:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

hashCodeback to summary
public int hashCode()

Overrides java_cup.parse_action.hashCode.

Compute a hash code.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

kindback to summary
public int kind()

Overrides java_cup.parse_action.kind.

Quick access to type of action.

toStringback to summary
public String toString()

Overrides java_cup.parse_action.toString.

Convert to string.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.