1MooseX::Declare::SyntaxU:s:eMrooCsoenStertiubpu(t3e)d PeMrolosDeoXc:u:mDeenctlaatrieo:n:Syntax::MooseSetup(3)
2
3
4
6 MooseX::Declare::Syntax::MooseSetup - Common Moose namespaces
7 declarations
8
10 This role is basically an extension to NamespaceHandling. It adds all
11 the common parts for Moose namespace definitions. Examples of this role
12 can be found in the class and role keywords.
13
15 · MooseX::Declare::Syntax::NamespaceHandling
16
17 · MooseX::Declare::Syntax::EmptyBlockIfMissing
18
20 auto_make_immutable
21 Bool Object->auto_make_immutable ()
22
23 Since Moose::Roles can't be made immutable (this is not a bug or a
24 missing feature, it would make no sense), this always returns false.
25
26 imported_moose_symbols
27 List Object->imported_moose_symbols ()
28
29 This will return "confess" and "blessed" by default to provide as
30 additional imports to the namespace.
31
32 import_symbols_from
33 Str Object->import_symbols_from ()
34
35 The namespace from which the additional imports will be imported. This
36 will return "Moose" by default.
37
39 default_inner
40 ArrayRef default_inner ()
41
42 This will provide the following default inner-handlers to the namspace:
43
44 · method
45
46 A simple Method handler.
47
48 · around
49
50 This is a MethodModifier handler that will start the signature of
51 the generated method with "$orig: $self" to provide the original
52 method in $orig.
53
54 · after
55
56 · before
57
58 · override
59
60 · augment
61
62 These four handlers are MethodModifier instances.
63
64 · clean
65
66 This is an instance of the Clean keyword handler.
67
68 The original method will never be called and all arguments are ignored
69 at the moment.
70
71 add_namespace_customizations
72 Object->add_namespace_customizations (Object $context, Str $package, HashRef $options)
73
74 After all other customizations, this will first add code to import the
75 "imported_moose_symbols" from the package returned in
76 "import_symbols_from" to the preamble.
77
78 Then it will add a code part that will immutabilize the class to the
79 cleanup code if the "auto_make_immutable" method returned a true value
80 and "$options-"{is}{mutable}> does not exist.
81
82 handle_post_parsing
83 CodeRef Object->handle_post_parsing (Object $context, Str $package, Str|Object $name)
84
85 Generates a callback that sets up the roles in the global role storage
86 for the current namespace. The $name parameter will be the specified
87 name (in contrast to $package which will always be the fully qualified
88 name) or the anonymous metaclass instance if none was specified.
89
90 setup_inner_for
91 Object->setup_inner_for (ClassName $class)
92
93 This will install a "with" function that will push its arguments onto a
94 global storage array holding the roles of the current namespace.
95
97 · MooseX::Declare
98
99 · Moose
100
102 See MooseX::Declare
103
104
105
106perl v5.12.1 2009-09M-o1o9seX::Declare::Syntax::MooseSetup(3)