-
-
19 Oct 2018 10:02:08 UTC
- Distribution: Tk-PerlMethodList
- Module version: 0.08
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (498 / 0 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (7.17KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- B
- Class::Inspector
- Devel::Peek
- File::Slurp
- MRO::Compat
- Tk
- Tk::LabEntry
- Tk::NumEntry
- Tk::ROText
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Tk::PerlMethodList - query the Symbol-table for methods (subroutines) defined in a class (package) and its parents.
SYNOPSIS
require Tk::PerlMethodList;
my $instance = $main_window->PerlMethodList();
DESCRIPTION
Tk::PerlMethodList is a Tk::Toplevel-derived widget.
The window contains entry fields for a classname and a regex. The list below displays the subroutine-names in the package(s) of the given classname and its parent classes. The list displays the sub-names present in the the symbol-table. In case of imported subs, the last field of a row contains the name of the aliased sub as reported by DevelPeek::CvGV. Tk::PerlMethodList will not show subs which can be - but have not yet been autoloaded. It will show declared subs though. The 'Filter' entry takes a regex to filter the returned List of sub/methodnames.
If the file containing a subroutine definition can be found in %INC, a green mark will be displayed at the beginning of the line. The sourcecode will be displayed by clicking on the subs list-entry.
Method list and source window have Control-plus and Control-minus bindings to change fontsize.
METHODS
Tk::PerlMethodList supports the following methods:
- classname('A::Class::Name')
-
Set the classname-entry to 'A::Class::Name'.
- filter('a_regex')
-
Set the filter-entry to 'a_regex'.
- show_methods()
-
Build the list for classname and filter present in the entry-fields.
OPTIONS
Tk::PerlMethodList supports the following options:
- -classname
-
$instance->configure(-classname =>'A::Class::Name') Same as classname('A::Class::Name').
- -filter
-
$instance->configure(-filter =>'a_regex') Same as filter('a_regex').
AUTHOR
Christoph Lamprecht, ch.l.ngre@online.de
COPYRIGHT AND LICENSE
Copyright (C) 2006-2007 by Christoph Lamprecht
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Tk::PerlMethodList, copy and paste the appropriate command in to your terminal.
cpanm Tk::PerlMethodList
perl -MCPAN -e shell install Tk::PerlMethodList
For more information on module installation, please visit the detailed CPAN module installation guide.