1MooseX::Declare::SyntaxU:s:eMrooCsoenStertiubpu(t3epdmM)PoeorsleXD:o:cDuemcelnatraet:i:oSnyntax::MooseSetup(3pm)
2
3
4

NAME

6       MooseX::Declare::Syntax::MooseSetup - Common Moose namespaces
7       declarations
8

VERSION

10       version 0.43
11

DESCRIPTION

13       This role is basically an extension to NamespaceHandling. It adds all
14       the common parts for Moose namespace definitions. Examples of this role
15       can be found in the class and role keywords.
16

METHODS

18   auto_make_immutable
19         Bool Object->auto_make_immutable ()
20
21       Since Moose::Roles can't be made immutable (this is not a bug or a
22       missing feature, it would make no sense), this always returns false.
23
24   imported_moose_symbols
25         List Object->imported_moose_symbols ()
26
27       This will return "confess" and "blessed" by default to provide as
28       additional imports to the namespace.
29
30   import_symbols_from
31         Str Object->import_symbols_from ()
32
33       The namespace from which the additional imports will be imported. This
34       will return "Moose" by default.
35

CONSUMES

37       ·   MooseX::Declare::Syntax::NamespaceHandling
38
39       ·   MooseX::Declare::Syntax::EmptyBlockIfMissing
40

MODIFIED METHODS

42   default_inner
43         ArrayRef default_inner ()
44
45       This will provide the following default inner-handlers to the
46       namespace:
47
48       ·   method
49
50           A simple Method handler.
51
52       ·   around
53
54           This is a MethodModifier handler that will start the signature of
55           the generated method with "$orig: $self" to provide the original
56           method in $orig.
57
58       ·   after
59
60       ·   before
61
62       ·   override
63
64       ·   augment
65
66           These four handlers are MethodModifier instances.
67
68       ·   clean
69
70           This is an instance of the Clean keyword handler.
71
72       The original method will never be called and all arguments are ignored
73       at the moment.
74
75   setup_inner_for
76         Object->setup_inner_for (ClassName $class)
77
78       This will install a "with" function that will push its arguments onto a
79       global storage array holding the roles of the current namespace.
80
81   add_namespace_customizations
82         Object->add_namespace_customizations (Object $context, Str $package, HashRef $options)
83
84       After all other customizations, this will first add code to import the
85       "imported_moose_symbols" from the package returned in
86       "import_symbols_from" to the preamble.
87
88       Then it will add a code part that will immutabilize the class to the
89       cleanup code if the "auto_make_immutable" method returned a true value
90       and "$options->{is}{mutable}" does not exist.
91
92   handle_post_parsing
93         CodeRef Object->handle_post_parsing (Object $context, Str $package, Str|Object $name)
94
95       Generates a callback that sets up the roles in the global role storage
96       for the current namespace. The $name parameter will be the specified
97       name (in contrast to $package which will always be the fully qualified
98       name) or the anonymous metaclass instance if none was specified.
99

SEE ALSO

101       ·   MooseX::Declare
102
103       ·   Moose
104

AUTHOR

106       Florian Ragwitz <rafl@debian.org>
107
109       This software is copyright (c) 2008 by Florian Ragwitz.
110
111       This is free software; you can redistribute it and/or modify it under
112       the same terms as the Perl 5 programming language system itself.
113
114
115
116perl v5.32.0                      2020-M0o7o-s2e8X::Declare::Syntax::MooseSetup(3pm)
Impressum