You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by qMax <qm...@mediasoft.ru> on 2005/05/30 12:25:09 UTC
[1.2.x] SiteTreeNode.acceptSubTree
in interface SiteTreeNode javadocs it is wrote:
public void acceptSubtree(SiteTreeNodeVisitor visitor)
throws DocumentException
Traverse the node ant its children and call the accept method.
However, the code in SiteTreeImpl calls:
for (int i = 0; i < children.length; i++) {
children[i].acceptSubtree(visitor);
}
That is, not 'accept' but 'acceptSubtree' is callen
and is recursively applied not to children but to all ancestors.
Is it typo in javadocs, or i miss something ?
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
javadocs for SiteTreeNode.acceptSubTree
Posted by qMax <qm...@mediasoft.ru>.
both .acceptSubtree and .acceptReverseSubtree are recursively applied
to ancestors.
I'd suggest javadocs of these classes to update.
Sorry for noise.
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: [1.2.x] SiteTreeNode.acceptSubTree
Posted by qMax <qm...@mediasoft.ru>.
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: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org