Package java_cup
Class reduce_action
java.lang.Object
java_cup.parse_action
java_cup.reduce_action
This class represents a reduce action within the parse table.
The action simply stores the production that it reduces with and
responds to queries about its type.
- Version:
- last updated: 11/25/95
- Author:
- Scott Hudson
-
Field Summary
FieldsFields inherited from class java_cup.parse_action
ERROR, NONASSOC, REDUCE, SHIFT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(reduce_action other) Equality test.boolean
Generic equality test.int
hashCode()
Compute a hash code.int
kind()
Quick access to type of action.The production we reduce with.toString()
Convert to string.Methods inherited from class java_cup.parse_action
equals
-
Field Details
-
_reduce_with
The production we reduce with.
-
-
Constructor Details
-
reduce_action
Simple constructor.- Parameters:
prod
- the production this action reduces with.- Throws:
internal_error
-
-
Method Details
-
reduce_with
The production we reduce with. -
kind
public int kind()Quick access to type of action.- Overrides:
kind
in classparse_action
-
equals
Equality test. -
equals
Generic equality test.- Overrides:
equals
in classparse_action
-
hashCode
public int hashCode()Compute a hash code.- Overrides:
hashCode
in classparse_action
-
toString
Convert to string.- Overrides:
toString
in classparse_action
-