Package 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 Detail

      • _shift_to

        protected lalr_state _shift_to
        The state we shift to.
    • Constructor Detail

    • Method Detail

      • shift_to

        public lalr_state shift_to()
        The state we shift to.
      • kind

        public int kind()
        Quick access to type of action.
        Overrides:
        kind in class parse_action
      • equals

        public boolean equals​(shift_action other)
        Equality test.
      • equals

        public boolean equals​(java.lang.Object other)
        Generic equality test.
        Overrides:
        equals in class parse_action
      • toString

        public java.lang.String toString()
        Convert to a string.
        Overrides:
        toString in class parse_action