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
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 will contain the sub-names present in the the symbol-table. It will therefore display imported subs as well. For the same reason it will not show subs which can be - but have not yet been autoloaded. It will show declared subs though. In case of imported subs, the last field of the row contains the aliased sub as reported by DevelPeek::CvGV. 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.
Tk::PerlMethodList is a Tk::Toplevel-derived widget.
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.