1 package Class::Inspector::Functions;
7 use Class::Inspector ();
9 use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION);
36 %EXPORT_TAGS = ( ALL => [ @EXPORT_OK, @EXPORT ] );
38 foreach my $meth (@EXPORT, @EXPORT_OK) {
39 my $sub = Class::Inspector->can($meth);
41 *{$meth} = sub {&$sub('Class::Inspector', @_)};
54 Class::Inspector::Functions - Get information about a class and its structure
58 use Class::Inspector::Functions;
59 # Class::Inspector provides a non-polluting,
60 # method based interface!
62 # Is a class installed and/or loaded
63 installed( 'Foo::Class' );
64 loaded( 'Foo::Class' );
66 # Filename related information
67 filename( 'Foo::Class' );
68 resolved_filename( 'Foo::Class' );
70 # Get subroutine related information
71 functions( 'Foo::Class' );
72 function_refs( 'Foo::Class' );
73 function_exists( 'Foo::Class', 'bar' );
74 methods( 'Foo::Class', 'full', 'public' );
76 # Find all loaded subclasses or something
77 subclasses( 'Foo::Class' );
81 Class::Inspector::Functions is a function based interface of
82 L<Class::Inspector>. For a thorough documentation of the available
83 functions, please check the manual for the main module.
87 The following functions are exported by default.
96 The following functions are exported only by request.
103 All the functions may be imported using the C<:ALL> tag.
107 Bugs should be reported via the CPAN bug tracker
109 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-Inspector>
111 For other issues, or commercial enhancement or support, contact the author.
115 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
117 Steffen Mueller E<lt>smueller@cpan.orgE<gt>
121 L<http://ali.as/>, L<Class::Handle>
125 Copyright 2002 - 2009 Adam Kennedy.
127 Class::Inspector::Functions copyright 2008 - 2009 Steffen Mueller.
129 This program is free software; you can redistribute
130 it and/or modify it under the same terms as Perl itself.
132 The full text of the license can be found in the
133 LICENSE file included with this module.