Fukurama::Class::Attributes::OOStandard::DefinitionCheck - Helper-class to check syntax of code attributes
Version 0.03 (beta)
- (its only a collection of methods, it's unusable outside of it's own context :)
A Helper class for Fukurama::Class::Attributes::OOStandard to check code attribute syntax.
-
Translate the given attribute data (e.g. static|void|string) into an wellformed hash which contain all definitions include implizit definitions.
Set the type-name of the actual checked code attribute. It's only for error messages.
Died with the given message and output some detailed informations about the involved method(s).
Resolved the method name from a given subroutine code reference.
Check all defintions of the given code attribute declaration.
Decorates subroutines with a check method to check parameter and return values.
Check the content of the parameter list for a subroutine.
Check the content of the return value(s) for a subroutine.
Check the caller of a subroutine, to avoid directly called, abstract methods.
Check the caller of a subroutine, to avoid unauthorized calls for e.g. private methods from outside the own class.
Check the first argument of the method for static or nonstatic calls and the correct usage.
Check the inheritations of all defined declarations to avoid differend method signatures for parent and child.
see perldoc of Fukurama::Class
To install Fukurama::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fukurama::Class
CPAN shell
perl -MCPAN -e shell install Fukurama::Class
For more information on module installation, please visit the detailed CPAN module installation guide.