Monday, May 30, 2005, 5:25:09 PM, qMax wrote:

q> in interface SiteTreeNode javadocs it is wrote:

q> public void acceptSubtree(SiteTreeNodeVisitor visitor)
q>                    throws DocumentException
q> Traverse the node ant its children and call the accept method.

q> However, the code in SiteTreeImpl calls:
q>            for (int i = 0; i < children.length; i++) {
q>                 children[i].acceptSubtree(visitor);
q>             }
q> That is, not 'accept' but 'acceptSubtree' is callen
q> and is recursively applied not to children but to all ancestors.

while in .acceptReverseSubtree there .accept is called recursively,
and recursion stops at first level of tree.

Do i really miss something ?

-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to