|
23 | 23 | package com.iluwatar.acyclicvisitor; |
24 | 24 |
|
25 | 25 | /** |
26 | | - * The Acyclic Visitor pattern allows new |
27 | | - * functions to be added to existing class |
28 | | - * hierarchies without affecting those |
29 | | - * hierarchies, and without creating the |
30 | | - * dependency cycles that are inherent to |
31 | | - * the GoF Visitor pattern, by making the |
32 | | - * Visitor base class degenerate |
| 26 | + * The Acyclic Visitor pattern allows new functions to be added to existing class |
| 27 | + * hierarchies without affecting those hierarchies, and without creating the dependency |
| 28 | + * cycles that are inherent to the GoF Visitor pattern, by making the Visitor base class |
| 29 | + * degenerate |
33 | 30 | * <p> |
34 | | - * In this example the visitor base |
35 | | - * class is {@link ModemVisitor}. |
36 | | - * The base class of the visited |
37 | | - * hierarchy is {@link Modem} and |
38 | | - * has two children {@link Hayes} |
39 | | - * and {@link Zoom} each one having |
40 | | - * its own visitor interface {@link Hayes} |
41 | | - * and {@link ZoomVisitor} respectively. |
42 | | - * {@link ConfigureForUnixVisitor} and |
43 | | - * {@link ConfigureForDosVisitor} implement |
44 | | - * each derivative's visit method |
45 | | - * only if it is required |
| 31 | + * In this example the visitor base class is {@link ModemVisitor}. The base class of the |
| 32 | + * visited hierarchy is {@link Modem} and has two children {@link Hayes} and {@link Zoom} |
| 33 | + * each one having its own visitor interface {@link Hayes} and {@link ZoomVisitor} |
| 34 | + * respectively. {@link ConfigureForUnixVisitor} and {@link ConfigureForDosVisitor} |
| 35 | + * implement each derivative's visit method only if it is required |
46 | 36 | */ |
47 | | - |
48 | 37 | public class App { |
49 | 38 |
|
50 | 39 | /** |
|
0 commit comments