Esempio n. 1
0
 protected void processList(NodeListInterface n, FormatCommand cmd) {
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
     e.nextElement().accept(this);
     if (cmd != null && e.hasMoreElements()) cmdQueue.addElement(cmd);
   }
 }
Esempio n. 2
0
 /**
  * Use this method to add FormatCommands to the command queue to be executed when the next token
  * in the tree is visited.
  */
 protected void add(FormatCommand cmd) {
   cmdQueue.addElement(cmd);
 }