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); } }
/** * 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); }