Lines Matching full:parser

1 package TAP::Parser::SourceHandler;
6 use TAP::Parser::Iterator ();
11 TAP::Parser::SourceHandler - Base class for different TAP source handlers
24 # see TAP::Parser::IteratorFactory for general usage
28 use base 'TAP::Parser::SourceHandler';
36 This is an abstract base class for L<TAP::Parser::Source> handlers / handlers.
38 A C<TAP::Parser::SourceHandler> does whatever is necessary to produce & capture
40 L<TAP::Parser::Iterator> for the parser to consume.
43 used by L<TAP::Parser::IteratorFactory>. At 2 methods, the interface is pretty
46 Unless you're writing a new L<TAP::Parser::SourceHandler>, a plugin, or
47 subclassing L<TAP::Parser>, you probably won't need to use this module directly.
59 C<$source> is a L<TAP::Parser::Source>.
64 L<TAP::Parser::IteratorFactory/detect_source> for details on how this is used.
81 C<$source> is a L<TAP::Parser::Source>.
83 Returns a new L<TAP::Parser::Iterator> object for use by the L<TAP::Parser>.
100 Please see L<TAP::Parser/SUBCLASSING> for a subclassing overview, and any
104 Start by familiarizing yourself with L<TAP::Parser::Source> and
105 L<TAP::Parser::IteratorFactory>. L<TAP::Parser::SourceHandler::RawTAP> is
109 used by L<TAP::Parser> you'll have to and make sure it gets loaded somehow.
111 using L<TAP::Parser> or L<TAP::Harness> directly (e.g. through a custom script,
113 which will cause L<TAP::Parser::IteratorFactory/load_sources> to load your
117 L<TAP::Parser::IteratorFactory/register_handler>.
125 use MySourceHandler; # see TAP::Parser::SourceHandler
126 use TAP::Parser::IteratorFactory;
128 use base 'TAP::Parser::SourceHandler';
130 TAP::Parser::IteratorFactory->register_handler( __PACKAGE__ );
164 # either pick a TAP::Parser::Iterator::* or write your own...
165 my $iterator = TAP::Parser::Iterator::Array->new([ 'foo', 'bar' ]);
180 L<TAP::Parser>,
181 L<TAP::Parser::Source>,
182 L<TAP::Parser::Iterator>,
183 L<TAP::Parser::IteratorFactory>,
184 L<TAP::Parser::SourceHandler::Executable>,
185 L<TAP::Parser::SourceHandler::Perl>,
186 L<TAP::Parser::SourceHandler::File>,
187 L<TAP::Parser::SourceHandler::Handle>,
188 L<TAP::Parser::SourceHandler::RawTAP>