您可以使用该节点树查找根元素及其所有的后代元素、属性和兄弟元素的节点。
Using that tree of nodes, you could find the node for the root element, along with all of the root element's descendants, attributes, and siblings.
最后,节点循环遍历所有的后代,并使用访问器调用它们的accept方法。
Finally, the node loops through its descendants and calls their accept method with the visitor.
同样,如果一种植物或动物没有留下任何可以繁殖的后代,它就不能把所有的能量浪费在使自己变得更强壮上,因为这是最可能走向灭绝的方式。
Similarly, a plant or animal cannot squander all its energy on growing a big body if none would be left over for reproduction, for this is the surest way to extinction.
应用推荐