Class PlantUMLVisitor
- java.lang.Object
-
- com.alibaba.cola.statemachine.impl.PlantUMLVisitor
-
-
Constructor Summary
Constructors Constructor Description PlantUMLVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringvisitOnEntry(State<?,?,?> state)StringvisitOnEntry(StateMachine<?,?,?> visitable)Since the state machine is stateless, there is no initial state.StringvisitOnExit(State<?,?,?> state)StringvisitOnExit(StateMachine<?,?,?> visitable)
-
-
-
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:
visitOnEntryin interfaceVisitor- Parameters:
visitable- the element to be visited.- Returns:
-
visitOnExit
public String visitOnExit(StateMachine<?,?,?> visitable)
- Specified by:
visitOnExitin interfaceVisitor- Parameters:
visitable- the element to be visited.- Returns:
-
visitOnEntry
public String visitOnEntry(State<?,?,?> state)
- Specified by:
visitOnEntryin interfaceVisitor- Parameters:
state- the element to be visited.- Returns:
-
visitOnExit
public String visitOnExit(State<?,?,?> state)
- Specified by:
visitOnExitin interfaceVisitor- Parameters:
state- the element to be visited.- Returns:
-
-