Class PlantUMLVisitor

  • All Implemented Interfaces:
    Visitor

    public class PlantUMLVisitor
    extends Object
    implements Visitor
    PlantUMLVisitor
    Author:
    Frank Zhang
    • Constructor Detail

      • PlantUMLVisitor

        public PlantUMLVisitor()
    • Method Detail

      • visitOnEntry

        public String visitOnEntry​(StateMachine<?,​?,​?> visitable)
        Since the state machine is stateless, there is no initial state. You have to add "[*] -> initialState" to mark it as a state machine diagram. otherwise it will be recognized as a sequence diagram.
        Specified by:
        visitOnEntry in interface Visitor
        Parameters:
        visitable - the element to be visited.
        Returns:
      • visitOnExit

        public String visitOnExit​(StateMachine<?,​?,​?> visitable)
        Specified by:
        visitOnExit in interface Visitor
        Parameters:
        visitable - the element to be visited.
        Returns:
      • visitOnEntry

        public String visitOnEntry​(State<?,​?,​?> state)
        Specified by:
        visitOnEntry in interface Visitor
        Parameters:
        state - the element to be visited.
        Returns:
      • visitOnExit

        public String visitOnExit​(State<?,​?,​?> state)
        Specified by:
        visitOnExit in interface Visitor
        Parameters:
        state - the element to be visited.
        Returns: