|
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 SequenceTypeVisitor<P>
A sequence type visitor visits a sequence
based on its actual type, for example ReversibleSequence
or MemorizableSequence
.
Implementation notes:
An actual visitor implementation of this interface may not be
able to visit decorated, adapted, or proxied sequences, because
the instanceof
test will fail in such cases. Such
sequences will thus use the SequenceVisitor.visitUnknown(Sequence, Object)
visitation method.
SequenceTypeScanner
,
SequenceValueVisitor
Method Summary | |
---|---|
void |
visitComposite(CompositeSequence<?> sequence,
P argument)
Visits a composite sequence. |
void |
visitMemorizable(MemorizableSequence<?> sequence,
P argument)
Visits a memorizable sequence. |
void |
visitObservable(ObservableSequence<?,?,?> sequence,
P argument)
Visits an observable sequence. |
void |
visitReversible(ReversibleSequence<?> sequence,
P argument)
Visits a reversible sequence. |
void |
visitStateable(StateableSequence<?> sequence,
P argument)
Visits a stateable sequence. |
Methods inherited from interface dk.rode.thesis.visitor.SequenceVisitor |
---|
visitUnknown |
Method Detail |
---|
void visitComposite(CompositeSequence<?> sequence, P argument)
composite
sequence.
sequence
- The composite sequence to visit; never null.argument
- A visitor-specified argument, if any; nullability
determined by the visitor implementation.void visitMemorizable(MemorizableSequence<?> sequence, P argument)
memorizable
sequence.
sequence
- The memorizable sequence to visit; never null.argument
- A visitor-specified argument, if any; nullability
determined by the visitor implementation.void visitObservable(ObservableSequence<?,?,?> sequence, P argument)
observable
sequence.
sequence
- The observable sequence to visit; never null.argument
- A visitor-specified argument, if any; nullability
determined by the visitor implementation.void visitReversible(ReversibleSequence<?> sequence, P argument)
reversible
sequence.
sequence
- The reversible sequence to visit; never null.argument
- A visitor-specified argument, if any; nullability
determined by the visitor implementation.void visitStateable(StateableSequence<?> sequence, P argument)
stateable
sequence.
sequence
- The stateable 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 |