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.

Field Summary

protected production
_reduce_with
The production we reduce with.

Constructor Summary

reduce_action(production prod)
Simple constructor.

Method Summary

boolean
equals(Object other)
Generic equality test.
boolean
equals(reduce_action other)
Equality test.
int
hashCode()
Compute a hash code.
int
kind()
Quick access to type of action.
production
reduce_with()
The production we reduce with.
String
toString()
Convert to string.

Field Details

_reduce_with

protected production _reduce_with
The production we reduce with.

Constructor Details

reduce_action

public reduce_action(production prod)
            throws internal_error
Simple constructor.
Parameters:
prod - the production this action reduces with.

Method Details

equals

public boolean equals(Object other)
Generic equality test.

equals

public boolean equals(reduce_action other)
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.