Class GrammarTransition

    • Method Detail

      • hasAction

        public boolean hasAction()
        Tells if the transition has an associated action.
        Returns:
        true if an action has been associated to the transition
      • getAction

        public GrammarAction getAction()
        Gets the action associated with the transition
        Returns:
        the action associated with the transition
      • toString

        public String toString​(int grammar,
                               Enum<Dsmlv2StatesEnum> statesEnum)
        Returns a representation of the transition as a string
        Parameters:
        grammar - the grammar which state we want a String from
        statesEnum - the states enum that contains the states' names
        Returns:
        a representation of the transition as a string.