java_cup

Class reduce_action

public class reduce_action extends parse_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
protected production_reduce_with
The production we reduce with.
Constructor Summary
reduce_action(production prod)
Simple constructor.
Method Summary
booleanequals(reduce_action other)
Equality test.
booleanequals(Object other)
Generic equality test.
inthashCode()
Compute a hash code.
intkind()
Quick access to type of action.
productionreduce_with()
The production we reduce with.
StringtoString()
Convert to string.

Field Detail

_reduce_with

protected production _reduce_with
The production we reduce with.

Constructor Detail

reduce_action

public reduce_action(production prod)
Simple constructor.

Parameters: prod the production this action reduces with.

Method Detail

equals

public boolean equals(reduce_action other)
Equality test.

equals

public boolean equals(Object other)
Generic equality test.

hashCode

public int hashCode()
Compute a hash code.

kind

public int kind()
Quick access to type of action.

reduce_with

public production reduce_with()
The production we reduce with.

toString

public String toString()
Convert to string.