1MooseX::Declare::SyntaxU:s:eKreyCwoonrtdrHiabnudtMleoidonsgPe(eX3r:)l:DDeoccluamreen:t:aStyinotnax::KeywordHandling(3)
2
3
4
6 MooseX::Declare::Syntax::KeywordHandling - Basic keyword functionality
7
9 This role provides the functionality common for all keyword handlers in
10 MooseX::Declare.
11
13 identifier
14 This is the name of the actual keyword. It is a required string that is
15 in the same format as a usual Perl identifier.
16
18 parse
19 Object->parse (Object $context)
20
21 This method must implement the actual parsing of the keyword syntax.
22
24 get_identifier
25 Str Object->get_identifier ()
26
27 Returns the name the handler will be setup under.
28
29 setup_for
30 Object->setup_for (ClassName $class, %args)
31
32 This will setup the handler in the specified $class. The handler will
33 dispatch to the "parse_declaration" method when the keyword is used.
34
35 A normal code reference will also be exported into the calling
36 namespace. It will either be empty or, if a "generate_export" method
37 is provided, the return value of that method.
38
39 parse_declaration
40 Object->parse_declaration (Str $filename, HashRef $setup_args, @call_args)
41
42 This simply creates a new context and passes it to the "parse" method.
43
45 · MooseX::Declare
46
47 · MooseX::Declare::Context
48
50 See MooseX::Declare
51
52
53
54perl v5.12.1 20M0o9o-s0e9X-:0:4Declare::Syntax::KeywordHandling(3)