-
-
16 Apr 2012 21:20:13 UTC
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (5)
- Testers (536 / 133 / 8)
- Kwalitee
Bus factor: 0- 85.27% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (852.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Marvin Humphrey <marvin at rectangular dot com>
- Dependencies
- JSON::XS
- Lingua::Stem::Snowball
- Lingua::StopWords
- Parse::RecDescent
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Clownfish::Hierarchy - A class hierarchy.
DESCRIPTION
A Clownfish::Hierarchy consists of all the classes defined in files within a source directory and its subdirectories.
There may be more than one tree within the Hierarchy, since all "inert" classes are root nodes, and since Clownfish does not officially define any core classes itself from which all instantiable classes must descend.
METHODS
new
my $hierarchy = Clownfish::Hierarchy->new( source => undef, # required dest => undef, # required );
source - The directory we begin reading files from.
dest - The directory where the autogenerated files will be written.
build
$hierarchy->build;
Parse every Clownfish header file which can be found under
source
, building up the object hierarchy.ordered_classes
my @classes = $hierarchy->ordered_classes;
Return all Classes as a list with the property that every parent class will precede all of its children.
propagate_modified
$hierarchy->propagate_modified($modified);
Visit all File objects in the hierarchy. If a parent node is modified, mark all of its children as modified.
If the supplied argument is true, mark all Files as modified.
get_source get_dest
Accessors.
COPYRIGHT AND LICENSE
Copyright 2006-2011 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm KSx::Simple
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.