1Moose::Meta::Class(3) User Contributed Perl DocumentationMoose::Meta::Class(3)
2
3
4

NAME

6       Moose::Meta::Class - The Moose metaclass
7

DESCRIPTION

9       This is a subclass of Class::MOP::Class with Moose specific extensions.
10
11       For the most part, the only time you will ever encounter an instance of
12       this class is if you are doing some serious deep introspection. To
13       really understand this class, you need to refer to the
14       Class::MOP::Class documentation.
15

METHODS

17       initialize
18       make_immutable
19           Override original to add default options for inlining destructor
20           and altering the Constructor metaclass.
21
22       create_immutable_transformer
23           Override original to lock "add_role" and memoize "calcu‐
24           late_all_roles"
25
26       new_object
27           We override this method to support the "trigger" attribute option.
28
29       construct_instance
30           This provides some Moose specific extensions to this method, you
31           almost never call this method directly unless you really know what
32           you are doing.
33
34           This method makes sure to handle the moose weak-ref, type-con‐
35           straint and type coercion features.
36
37       get_method_map
38           This accommodates Moose::Meta::Role::Method instances, which are
39           aliased, instead of added, but still need to be counted as valid
40           methods.
41
42       add_override_method_modifier ($name, $method)
43           This will create an "override" method modifier for you, and install
44           it in the package.
45
46       add_augment_method_modifier ($name, $method)
47           This will create an "augment" method modifier for you, and install
48           it in the package.
49
50       calculate_all_roles
51       roles
52           This will return an array of "Moose::Meta::Role" instances which
53           are attached to this class.
54
55       add_role ($role)
56           This takes an instance of "Moose::Meta::Role" in $role, and adds it
57           to the list of associated roles.
58
59       does_role ($role_name)
60           This will test if this class "does" a given $role_name. It will not
61           only check it's local roles, but ask them as well in order to cas‐
62           cade down the role hierarchy.
63
64       excludes_role ($role_name)
65           This will test if this class "excludes" a given $role_name. It will
66           not only check it's local roles, but ask them as well in order to
67           cascade down the role hierarchy.
68
69       add_attribute ($attr_name, %params⎪$params)
70           This method does the same thing as
71           Class::MOP::Class::add_attribute, but adds support for taking the
72           $params as a HASH ref.
73

BUGS

75       All complex software has bugs lurking in it, and this module is no
76       exception. If you find a bug please either email me, or add the bug to
77       cpan-RT.
78

AUTHOR

80       Stevan Little <stevan@iinteractive.com>
81
83       Copyright 2006, 2007 by Infinity Interactive, Inc.
84
85       <http://www.iinteractive.com>
86
87       This library is free software; you can redistribute it and/or modify it
88       under the same terms as Perl itself.
89
90
91
92perl v5.8.8                       2007-09-06             Moose::Meta::Class(3)
Impressum