Difference: VisitAllChildren ( vs. 1)

Revision 12005-05-05 - KrisDeVolder

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="DesignRulesRepository"

Visit All Children

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

-- KrisDeVolder - 05 May 2005

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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