code: @SuppressWarnings("unchecked")
      public static Iterator<TreeNode> iterator(TreeNode self) {
          return (Iterator<TreeNode>) DefaultGroovyMethods.iterator(self.children());
      }
docs: Returns an {@link java.util.Iterator} which traverses the TreeNode one node at a time.
  
  @param self a TreeNode
  @return an Iterator for a TreeNode
  @since 1.6.4