java_cup

Class shift_action

public class shift_action extends parse_action

This class represents a shift action within the parse table. The action simply stores the state that it shifts to and responds to queries about its type.

Version: last updated: 11/25/95

Author: Scott Hudson

Field Summary
protected lalr_state_shift_to
The state we shift to.
Constructor Summary
shift_action(lalr_state shft_to)
Simple constructor.
Method Summary
booleanequals(shift_action other)
Equality test.
booleanequals(Object other)
Generic equality test.
inthashCode()
Compute a hash code.
intkind()
Quick access to type of action.
lalr_stateshift_to()
The state we shift to.
StringtoString()
Convert to a string.

Field Detail

_shift_to

protected lalr_state _shift_to
The state we shift to.

Constructor Detail

shift_action

public shift_action(lalr_state shft_to)
Simple constructor.

Parameters: shft_to the state that this action shifts to.

Method Detail

equals

public boolean equals(shift_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.

shift_to

public lalr_state shift_to()
The state we shift to.

toString

public String toString()
Convert to a string.