1MooseX::ClassAttribute:U:sTerraiCto:n:tCrliabsust(e3d)PMeorolseDXo:c:uCmleanstsaAttitornibute::Trait::Class(3)
2
3
4

NAME

6       MooseX::ClassAttribute::Trait::Class - A trait for classes with class
7       attributes
8

VERSION

10       version 0.16
11

SYNOPSIS

13         for my $attr ( HasClassAttributes->meta()->get_all_class_attributes() )
14         {
15             print $attr->name();
16         }
17

DESCRIPTION

19       This role adds awareness of class attributes to a metaclass object. It
20       provides a set of introspection methods that largely parallel the
21       existing attribute methods, except they operate on class attributes.
22

METHODS

24       Every method provided by this role has an analogous method in
25       "Class::MOP::Class" or "Moose::Meta::Class" for regular attributes.
26
27   $meta->has_class_attribute($name)
28   $meta->get_class_attribute($name)
29   $meta->get_class_attribute_list()
30       These methods operate on the current metaclass only.
31
32   $meta->add_class_attribute(...)
33       This accepts the same options as the Moose::Meta::Attribute
34       "add_attribute()" method. However, if an attribute is specified as
35       "required" an error will be thrown.
36
37   $meta->remove_class_attribute($name)
38       If the named class attribute exists, it is removed from the class,
39       along with its accessor methods.
40
41   $meta->get_all_class_attributes()
42       This method returns a list of attribute objects for the class and all
43       its parent classes.
44
45   $meta->find_class_attribute_by_name($name)
46       This method looks at the class and all its parent classes for the named
47       class attribute.
48
49   $meta->get_class_attribute_value($name)
50   $meta->set_class_attribute_value($name, $value)
51   $meta->set_class_attribute_value($name)
52   $meta->clear_class_attribute_value($name)
53       These methods operate on the storage for class attribute values, which
54       is attached to the metaclass object.
55
56       There's really no good reason for you to call these methods unless
57       you're doing some deep hacking. They are named as public methods solely
58       because they are used by other meta roles and classes in this
59       distribution.
60
61   $meta->inline_class_slot_access($name)
62   $meta->inline_get_class_slot_value($name)
63   $meta->inline_set_class_slot_value($name, $val_name)
64   $meta->inline_is_class_slot_initialized($name)
65   $meta->inline_deinitialize_class_slot($name)
66   $meta->inline_weaken_class_slot_value($name)
67       These methods return code snippets for inlining.
68
69       There's really no good reason for you to call these methods unless
70       you're doing some deep hacking. They are named as public methods solely
71       because they are used by other meta roles and classes in this
72       distribution.
73

BUGS

75       See MooseX::ClassAttribute for details.
76

AUTHOR

78         Dave Rolsky <autarch@urth.org>
79
81       This software is Copyright (c) 2010 by Dave Rolsky.
82
83       This is free software, licensed under:
84
85         The Artistic License 2.0
86
87
88
89perl v5.12.2                      2010-0M7o-o1s5eX::ClassAttribute::Trait::Class(3)
Impressum