|
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 | ||||||||
@Participant(value="ObjectStructure") public interface SequenceValueScanner
A sequence value scanner performs the actual traversal
of the sequence structure to be visited
by a value visitor, invoking the
ValueVisitableSequence.accept(SequenceValueVisitor, Object)
visitation method on each found value
visitable sequence.
Non-visitable sequences are ignored, but ordinary
composite sequences are still traversed.
SequenceValueVisitor,
SequenceTypeScanner| Method Summary | ||
|---|---|---|
|
scan(ValueVisitableSequence<?> sequence,
SequenceValueVisitor<P> visitor,
P argument)
Performs the traversal of the sequence structure starting with sequence using the value
visitor supplied as visitor. |
|
| Method Detail |
|---|
<P> void scan(ValueVisitableSequence<?> sequence,
SequenceValueVisitor<P> visitor,
P argument)
sequence using the value
visitor supplied as visitor. If sequence
is non-composite, it will be the only sequence visited.
For each value visitable sequence
found in the sequence structure, the
ValueVisitableSequence.accept(SequenceValueVisitor, Object)
visitation method is invoked.
P - The type of the additional parameter to required by
visitor. Use Void for visitors that
do not need an additional parameter.sequence - The starting sequence ("root"); cannot be null.visitor - The value visitor to use; cannot be null.argument - A visitor specified argument, if any;
nullability determined by visitor.
NullPointerException - If sequence or visitor
are null.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||