|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
P - The type of the additional parameter to this visitor's methods.
Use Void for visitors that do not need an additional
parameter.@Participant(value="Visitor") public interface SequenceVisitor<P>
A sequence visitor is the super type for all visitors that
can visit a sequence type.
This interface only declares a single method, namely
visitUnknown(Sequence, Object), which is the default
visitation method to use in case a visitation cannot be performed.
Actual sub-classes must thus supply the actual meaningful
visitation methods.
SequenceValueVisitor,
SequenceTypeVisitor| Method Summary | |
|---|---|
void |
visitUnknown(Sequence<?> sequence,
P argument)
Visits a sequence that cannot be visited
by any other visitation methods declared by this visitor. |
| Method Detail |
|---|
void visitUnknown(Sequence<?> sequence,
P argument)
sequence that cannot be visited
by any other visitation methods declared by this visitor.
sequence - The sequence to visit; never null.argument - A visitor-specified argument, if any; nullability
determined by the visitor implementation.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||