Lamprecht Christoph > Tk-PerlMethodList-0.07 > Tk::PerlMethodList

Download:
Tk-PerlMethodList-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.07   Source  

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.

syntax highlighting: