---+ Visit All Children %TOC% ---++ Context A design rule for implementing the =visit= methods of in a visitor design pattern. The rule is probably application specific in that it needs to be tailored to a specific visitor implementation and may not be desirable to use with all visitor implementations (the restriction it imposes may be too strong). ---++ Description When implementing a visitor method for SomeSpecificClass in SomeSpecificClassHierarchy and SomeSpecificVisitor, ensure that you always call the visit method for each field of the visitedNode that also contains a visitable element. ---++ Rationale ---++ Example ---++ Definition ---+++ [[JQuery]] ---+++ MetaL ---+++ AspectJ ---+++ HypotheticaL ---++ Ruminations -- Main.KrisDeVolder - 05 May 2005
This topic: SPL
>
WebHome
>
PhoenixProject
>
DesignRulesRepository
>
VisitAllChildren
Topic revision: r1 - 2005-05-05 - KrisDeVolder
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback