Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.visitor
Interface SequenceVisitor<P>

Type Parameters:
P - The type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
All Known Subinterfaces:
SequenceTypeVisitor<P>, SequenceValueVisitor<P>
All Known Implementing Classes:
CountingVisitor, LoggingVisitor, TypeVisitor

@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.

Author:
Gunni Rode / rode.dk
See Also:
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

visitUnknown

void visitUnknown(Sequence<?> sequence,
                  P argument)
Visits a sequence that cannot be visited by any other visitation methods declared by this visitor.

Parameters:
sequence - The sequence to visit; never null.
argument - A visitor-specified argument, if any; nullability determined by the visitor implementation.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.