1MooseX::Declare::SyntaxU:s:eMretChoondtDreicbMluoatoresadetXiP:oe:nrD(le3c)Dloacruem:e:nStyanttiaoxn::MethodDeclaration(3)
2
3
4

NAME

6       MooseX::Declare::Syntax::MethodDeclaration - Handles method
7       declarations
8

DESCRIPTION

10       A role for keyword handlers that gives a framework to add or modify
11       methods or things that look like methods.
12

CONSUMES

14       ·   MooseX::Declare::Syntax::KeywordHandling
15

ATTRIBUTES

17   prototype_injections
18       An optional structure describing additional things to be added to a
19       methods signature. A popular example is found in the "around" method
20       modifier handler:
21

REQUIRED METHODS

23   register_method_declaration
24         Object->register_method_declaration (Object $metaclass, Str $name, Object $method)
25
26       This method will be called with the target metaclass and the final
27       built method meta object and its name.  The value it returns will be
28       the value returned where the method was declared.
29

METHODS

31   parse
32         Object->parse (Object $ctx);
33
34       Reads a name and a prototype and builds the method meta object then
35       registers it into the current class using MooseX::Method::Signatures
36       and a "custom_method_application", that calls
37       "register_method_declaration".
38

SEE ALSO

40       ·   MooseX::Declare
41
42       ·   MooseX::Declare::Syntax::NamespaceHandling
43
44       ·   MooseX::Declare::Syntax::MooseSetup
45
46       ·   MooseX::Method::Signatures
47
49       See MooseX::Declare
50
51
52
53perl v5.12.1                     M2o0o0s9e-X0:9:-D0e4clare::Syntax::MethodDeclaration(3)
Impressum