dk.rode.thesis.visitor
Interface TypeVisitableSequence<E>
- Type Parameters:
E
- The type of values delivered by this sequence.
- All Superinterfaces:
- Copyable<Sequence<E>>, Sequence<E>, StrictCopyable<Sequence<E>>, Stringable<Sequence<E>>
- All Known Implementing Classes:
- AbstractVisitableSequence, DateValuedVisitableSequence, IntegerValuedVisitableSequence, ReflectiveVisitableSequence, StringValuedVisitableSequence, VisitableCompositeSequence, VisitableLongSequence, VisitableReversiblePrimeSequence
@Participant(value="Element")
public interface TypeVisitableSequence<E>
- extends Sequence<E>
A type visitable sequence allows visitation
by type
visitors.
- Author:
- Gunni Rode / rode.dk
- See Also:
SequenceTypeScanner
accept
<P> void accept(SequenceTypeVisitor<P> visitor,
P argument)
- Visits this visitable sequence using the
type
visitor supplied
as visitor
.
- Type Parameters:
P
- The type of visitor-supplied argument. Use Void
for visitors that do not need an additional argument.- Parameters:
visitor
- The visitor; never null.argument
- A context supplied argument, if any.- See Also:
SequenceTypeScanner.scan(TypeVisitableSequence, SequenceTypeVisitor, Object)
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.