コード例 #1
0
ファイル: DepthFirstVisitor.java プロジェクト: pradeep90/POPL
 public void visit(NodeSequence n) {
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) e.nextElement().accept(this);
 }
コード例 #2
0
ファイル: DepthFirstVisitor.java プロジェクト: pradeep90/POPL
 public void visit(NodeListOptional n) {
   if (n.present())
     for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) e.nextElement().accept(this);
 }