Пример #1
0
 public void pushState() {
   states.add(state);
   levels.add(level);
   state = start_state;
   level = 0;
   inXML++;
 }
Пример #2
0
 public void popState() {
   state = states.removeLast();
   level = levels.removeLast();
   if (inXML > 0) inXML--;
 }