Top Description Fields Constructors Methods
java_cup

public Class shift_action

extends parse_action
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
protected lalr_state
_shift_to

The state we shift to.

Inherited from java_cup.parse_action:
ERRORNONASSOCREDUCESHIFT

Constructor Summary

AccessConstructor and Description
public
shift_action(lalr_state
the state that this action shifts to.
shft_to
)

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(shift_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 lalr_state
shift_to()

The state we shift to.

public String
toString()

Overrides java_cup.parse_action.toString.

Convert to a string.
Inherited from java_cup.parse_action:
equals

Field Detail

_shift_toback to summary
protected lalr_state _shift_to

The state we shift to.

Constructor Detail

shift_actionback to summary
public shift_action(lalr_state shft_to) throws internal_error

Simple constructor.

Parameters
shft_to:lalr_state

the state that this action shifts to.

Method Detail

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

shift_toback to summary
public lalr_state shift_to()

The state we shift to.

toStringback to summary
public String toString()

Overrides java_cup.parse_action.toString.

Convert to a string.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.