Class::Maker

Class::Maker Perl module contains classes, reflection, schema, serialization, attribute- and multiple inheritance.
Download

Class::Maker Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Murat Uenalan
  • Publisher web site:
  • http://search.cpan.org/~muenalan/Class-NiceApi-0.01.02/NiceApi.pm

Class::Maker Tags


Class::Maker Description

Class::Maker Perl module contains classes, reflection, schema, serialization, attribute- and multiple inheritance. Class::Maker Perl module contains classes, reflection, schema, serialization, attribute- and multiple inheritance.SYNOPSISuse Class::Maker qw(class);class Human, { isa => , public => { string => , ref => , array => , custom => , }, private => { int => , }, configure => { ctor => 'create', explicit => 0, },};sub Human::greeting : method { my $this = shift; printf 'This is %s (%d)', $this->name, $this->uid;}class UnixUser, { isa => , public => { int => , string => , },}; my $a = Human->new( uid => 1, gid => 2, name => Bart ); $a->father( Human->new( name => Houmer ) ); $a->greeting(); $a->uid = 12; $a->_dummy1( 'bla' );Class::Maker introduces the concept of classes via a "class" function. It automatically creates packages, ISA, new and attribute-handlers. The classes can inherit from common perl-classes and class-maker classes. Single and multiple inheritance is supported.This package is for everybody who wants to program oo-perl and does not really feel comfortable with the common way.Java-like reflection is also implemented and allows one to inspect the class properties and methods during runtime. This is helpfull for implementing persistance and serialization. A Tangram (see cpan) schema generator is included to the package, so one can use Tangram object-persistance on the fly as long as he uses Class::Maker classes. Requirements: · Perl


Class::Maker Related Software