Top Description Fields Constructors Methods
java_cup

public Class reduce_action

extends parse_action
Class Inheritance

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.
Author
Scott Hudson
Version
last updated: 11/25/95

Field Summary

Modifier and TypeField and Description
protected production
_reduce_with

The production we reduce with.

Inherited from java_cup.parse_action:
ERRORNONASSOCREDUCESHIFT

Constructor Summary

AccessConstructor and Description
public
reduce_action(production
the production this action reduces with.
prod
)

Simple constructor.

Method Summary

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

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 production
reduce_with()

The production we reduce with.

public String
toString()

Overrides java_cup.parse_action.toString.

Convert to string.
Inherited from java_cup.parse_action:
equals

Field Detail

_reduce_withback to summary
protected production _reduce_with

The production we reduce with.

Constructor Detail

reduce_actionback to summary
public reduce_action(production prod) throws internal_error

Simple constructor.

Parameters
prod:production

the production this action reduces with.

Method Detail

equalsback to summary
public boolean equals(reduce_action other)

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.

reduce_withback to summary
public production reduce_with()

The production we reduce with.

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.