OODoc::Text::Subroutine - collects information about one documented sub
OODoc::Text::Subroutine is a OODoc::Text is a OODoc::Object
Perl has various things we can call "sub" (for "subroutine") one way or the other. This object tries to store all types of them: methods, funtion, ties, and overloads. Actually, these are the most important parts of the documentation. The share more than they differ.
-Option --Defined in --Default container OODoc::Text <required> description OODoc::Text '' linenr OODoc::Text <required> name OODoc::Text undef parameters undef type OODoc::Text <required>
The parameter list for the subroutine is returned as string. The result may be
undef or empty.
Try to figure-out what the location for the subroutine is within the MANUAL page. Have a look at all levels of extension for this sub-routine's documentation and decides the best enclosing chapter, section and subsection. Then return that object for the current manual.
Returns the path of the text structure which contains this subroutine.
Returns a list of option-default combinations on this subroutine.
In case of a NAME, a default object for this method is looked up. This does not search through super classes, but solely which is defined with this subroutine. When passed an OBJECT of type OODoc::Text::Default that will be stored.
Returns a list of all defaults as defined by this documentation item in one manual.
Add a new diagnostic message (a OODoc::Text::Diagnostic object) to the list already in this object. You can not look for a message because these names are without use.
Returns a list of all diagnostics.
Does a little more thorough job than option() bu searching the inherited options for this subroutine as well.
In case of a NAME, the option object for this method is looked up. This does not search through super classes, but solely which is defined with this subroutine. When passed an OBJECT of type OODoc::Text::Option that will be stored.
Returns a list of all options as defined by this documentation item in one manual.
Any description of a subroutine classifies it as method, tie, overload or whatever. Apparently, this indicated subroutine is defined being of a different type on these both places, and there is an inheritance relation between these places.
In very rare cases, this warning can be ignored, but usually these situation is errorneous of confusing for the users of the library.
The location of subroutine descriptions must be consistent over the manual pages. You may change the level of clearness about the exact location (place in the chapter in one page, and in a subsection in the next), as long as it is not conflicting (the subsection must be a part of the chapter).
This module is part of OODoc distribution version 1.06, built on January 26, 2011. Website: http://perl.overmeer.net/oodoc/
Copyrights 2003-2011 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html