Devel::Examine::Subs::Engine - Provides core engine callbacks for Devel::Examine::Subs
use Devel::Examine::Subs::Engine; my $compiler = Devel::Examine::Subs::Engine->new; my $engine = 'has'; if (! $compiler->exists($engine)){ confess "engine $engine is not implemented.\n"; } eval { $engine_cref = $compiler->{engines}{$engine}->(); };
All methods other than exists() takes an href of configuration data as its first parameter.
exists()
exists('engine')
Verifies whether the engine name specified as the string parameter exists and is valid.
all
Takes $struct params directly from the Processor module.
$struct
Returns an aref.
has
Takes $struct from the output of the 'file_lines_contain' Postprocessor.
missing
Data comes directly from the Processor.
lines
The module that passes data in is dependant on whether 'search' is set. Otherwise, it comes directly from the Processor.
Returns an href.
objects
Uses Devel::Examine::Subs::Sub to generate objects based on subs.
Devel::Examine::Subs::Sub
Returns an aref of said objects.
search_replace
Takes params, struct and a des object.
Returns aref of replaced lines if there are any.
inject_after
Returns aref of subs that had code injected.
Steve Bertrand, <steveb at cpan.org>
<steveb at cpan.org>
You can find documentation for this module with the perldoc command.
perldoc Devel::Examine::Subs
Copyright 2016-2020 Steve Bertrand.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Devel::Examine::Subs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Examine::Subs
CPAN shell
perl -MCPAN -e shell install Devel::Examine::Subs
For more information on module installation, please visit the detailed CPAN module installation guide.