Devel::PerlySense::Class - A Perl Class
A Perl Class is a Perl Package with an OO interface.
Devel::PerlySense object.
Default: set during new()
The Class name (i.e. the package name)
Default: ""
Array ref with PerlySense::Document objects that define this class.
Default: []
Hash ref with (keys: base class names; values: base class PerlySense::Class objects).
Default: {}
Create new PerlySense::Class object. Give it $name and associate it with $oPerlySense.
$rhClassSeen is used to keep track of seen base classes in case we encounter circular deps.
Create new PerlySense::Class object given the class found at $row, $col in $file.
If there was no package started yet at $row, $col, but there is one later in the file, use the first one instead (this is when you're at the top of the file and the package statement didn't happen yet).
Return new object, or undef if no class was found, or die if the file doesn't exist.
Create new PerlySense::Class object given the class $name.
Look for the module file starting at $dirOrigin.
Return new object, or undef if no class was found with that $name.
Find the base classes of this class and set (replace) rBaseClass with newly created Class objects.
Reuse any class names and objects in $rhClassSeen (keys: class names; values: Class objects), i.e. don't follow them upwards, they have already been taken care of.
Find the sub classes of this class and return a hash ref with (keys: Class names; values: Class objects).
Look for subclasses in the directory of this Class, and below.
(In the future, look in all of the current project.)
(this is a horribly inefficient way of finding subclasses. When there is Project with metadata, use that instead of looking everywhere).
Find the classes in the neighbourhood of this class and return a hash ref with (keys: up, current, down; values: array refs with (Package names).
Find the classes names in the .pm files in $dir and return a list of Class names.
Return array with the names of the "use MODULE" modules in the Class.
Johan Lindström, <johanl[ÄT]DarSerMan.com>
<johanl[ÄT]DarSerMan.com>
Please report any bugs or feature requests to bug-devel-perlysense@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-PerlySense. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-devel-perlysense@rt.cpan.org
Copyright 2005 Johan Lindström, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Lindström,'. Assuming CP1252
To install Devel::PerlySense, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::PerlySense
CPAN shell
perl -MCPAN -e shell install Devel::PerlySense
For more information on module installation, please visit the detailed CPAN module installation guide.