Tk::PerlMethodList - query the Symbol-table for methods (subroutines) defined in a class (package) and its parents.


Tk-PerlMethodList documentation  | view source Contained in the Tk-PerlMethodList distribution.

Index


NAME

Top

Tk::PerlMethodList - query the Symbol-table for methods (subroutines) defined in a class (package) and its parents.

SYNOPSIS

Top

require Tk::PerlMethodList;

my $instance = $main_window->PerlMethodList();

DESCRIPTION

Top

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

Top

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

Top

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

Top

Christoph Lamprecht, ch.l.ngre@online.de

COPYRIGHT AND LICENSE

Top


Tk-PerlMethodList documentation  | view source Contained in the Tk-PerlMethodList distribution.