为了在递归方法中传递,匿名类应该扩展方法已知的包装器类型。
To pass this to a recursive method, the anonymous class should extend a wrapper type known to the method.
当前计算的结果依赖于之前的部分结果,所以,在每次后续递归调用中,我们向前传递那些结果。
The result of the present computation depended on the partial results before it, so in each successive recursive call, we pass those results forward.
第二个代码块(第6 - 7行)只是将文档的根元素传递给我马上要谈到的递归修改方法。
The second code block (lines 6-7) just passes the root element of the document off to the recursive modification method I'll get to in a moment.
应用推荐