File-CodeSearch

 view release on metacpan or  search on metacpan

lib/File/CodeSearch/RegexBuilder.pm  view on Meta::CPAN

=item C<sub_match (Bool)>

Stores if a sub match has been found

=item C<sub_not_matches (ArrayRef[Str])>

Terms to search on that the file should not contain to be considered to have matched

=item C<sub_not_match (Bool)>

Stores if a not sub match has been found

=item C<last (ArrayRef[Str])>

A list of types to keep track of for context of a match (eg the last function, class or sub)

=item C<lasts (HashRef[Str])>

The current state of requested "last" types

=item C<smart (Bool)>

Create smart regular expression

=back

=head1 SUBROUTINES/METHODS

=head2 C<make_regex ()>

=head2 C<match ($line)>

=head2 C<sub_matches ($line)>

=head2 C<reset_file ( $file )>

Resets file based counters and adds $file as the new file being processed

=head2 C<check_sub_matches ( $line )>

Checks that $line matches any specified sub matches

=head2 C<check_lasts ( $line )>

Checks if the line matches a block start signature eg checks if we are starting
a sub, function or class so that any matches in that block can be identified as
coming from there.

=head2 C<get_last_found ()>

Returns the last match block

=head1 DIAGNOSTICS

=head1 CONFIGURATION AND ENVIRONMENT

=head1 DEPENDENCIES

=head1 INCOMPATIBILITIES

=head1 BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

=head1 AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

=head1 LICENSE AND COPYRIGHT

Copyright (c) 2009 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
All rights reserved.

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See L<perlartistic>.  This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

=cut



( run in 2.635 seconds using v1.01-cache-2.11-cpan-524268b4103 )