Moose::Meta::Method::Constructor.3pm

Langue: en

Version: 2009-03-27 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Moose::Meta::Method::Constructor - Method Meta Object for constructors

DESCRIPTION

This class is a subclass of Class::MOP::Class::Constructor that provides additional Moose-specific functionality

To understand this class, you should read the the Class::MOP::Class::Constructor documentation as well.

INHERITANCE

"Moose::Meta::Method::Constructor" is a subclass of Moose::Meta::Method and Class::MOP::Method::Constructor.

METHODS

$metamethod->can_be_inlined
This returns true if the method can inlined.

First, it looks at all of the parents of the associated class. If any of them have an inlined constructor, then the constructor can be inlined.

If none of them have been inlined, it checks to make sure that the pre-inlining constructor for the class matches the constructor from the expected class.

By default, it expects this constructor come from Moose::Object, but subclasses can change this expectation.

If the constructor cannot be inlined it warns that this is the case.

AUTHORS

Stevan Little <stevan@iinteractive.com> Copyright 2006-2009 by Infinity Interactive, Inc.

<http://www.iinteractive.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.