Fukurama::Class::Implements - Pragma to provide interfaces
Version 0.01 (alpha)
package MyClass; use Fukurama::Class::Implements('MyParent');
This pragma-like module enables te possibility to use interfaces (like in java). The implementation
of all subroutines (except perls speacials) will be checked at compiletime. Your package won't inherit
from this interface but every isa() will say that it is. Use Fukurama::Class instead, to get all the
features for OO.
You can define the check-level which describes how the module will check implementations. The following levels are allowed:
There is no check and no change in UNIVERSAL. If you use this level, it's like you remove this module.
There are no side effects. You should only use this, if you never use the isa() method to check for interfaces.
All Registration-Processes are executed and UNIVERSAL::isa would be decorated, but there would be no check. This level is recommended for production.
All Classes would checked for implementation. This is the default behavior when you does'n change the check-level.
would be decorated
Helper-method, which would executed by every pragma usage.
run_check() return:VOID
Helper method for static perl (see Fukurama::Class > BUGS)
register_class_tree() return:VOID
Helper method to register needed handler in Fukurama::Class::Tree
see perldoc of the Fukurama::Class manpage