Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday January 29, 2009
06:04 AM

Object Inspector?

[ #38363 ]

I'll write the code if I have to, but I can't imagine that someone else hasn't. Given this:

my $report = Class::Inspector->inspect($class_or_instance);

And with that, $report should be able to tell me a few things:

  • Give me a directed graph showing the intheritance tree
  • Give me a collection of overridden methods and which classes override
  • Give me a list of actual methods
  • Issue warnings about potential MI conflicts (e.g., horizontal and diamond conflicts)

Note that all method objects should, at the least, provide all of the information that Sub::Information does (origin, code, name, etc.).

That's all I can think of right now. I really wish I could do things like inspect signatures or do a deeper inspection to ensure sanity, but I think that's out. Any other suggestions?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.