ControlFlow.java 590 B

12345678910111213141516171819202122232425262728293031
  1. package animation;
  2. public class ControlFlow {
  3. public static final int STEP_INTO = 0;
  4. public static final int STEP_OVER = 1;
  5. public static final int CALL = 2;
  6. private int status;
  7. private PseudoCodeNode function;
  8. public ControlFlow( int status )
  9. {
  10. this.status = status;
  11. }
  12. public ControlFlow( PseudoCodeNode functionNode )
  13. {
  14. status = CALL;
  15. function = functionNode;
  16. }
  17. public PseudoCodeNode getFunction()
  18. {
  19. return function;
  20. }
  21. public int getStatus()
  22. {
  23. return status;
  24. }
  25. }