1MooseX::Declare::SyntaxU:s:eKreyCwoonrtdrHiabMnuodtolesidenXgP:(e:3rDplemc)Dloacruem:e:nStyanttiaoxn::KeywordHandling(3pm)
2
3
4

NAME

6       MooseX::Declare::Syntax::KeywordHandling - Basic keyword functionality
7

VERSION

9       version 0.43
10

DESCRIPTION

12       This role provides the functionality common for all keyword handlers in
13       MooseX::Declare.
14

ATTRIBUTES

16   identifier
17       This is the name of the actual keyword. It is a required string that is
18       in the same format as a usual Perl identifier.
19

METHODS

21   get_identifier
22         Str Object->get_identifier ()
23
24       Returns the name the handler will be setup under.
25
26   setup_for
27         Object->setup_for (ClassName $class, %args)
28
29       This will setup the handler in the specified $class. The handler will
30       dispatch to the "parse_declaration" method when the keyword is used.
31
32       A normal code reference will also be exported into the calling
33       namespace.  It will either be empty or, if a "generate_export" method
34       is provided, the return value of that method.
35
36   parse_declaration
37         Object->parse_declaration (Str $filename, HashRef $setup_args, @call_args)
38
39       This simply creates a new context and passes it to the "parse" method.
40

REQUIRED METHODS

42   parse
43         Object->parse (Object $context)
44
45       This method must implement the actual parsing of the keyword syntax.
46

SEE ALSO

48       ·   MooseX::Declare
49
50       ·   MooseX::Declare::Context
51

AUTHOR

53       Florian Ragwitz <rafl@debian.org>
54
56       This software is copyright (c) 2008 by Florian Ragwitz.
57
58       This is free software; you can redistribute it and/or modify it under
59       the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.32.0                     M2o0o2s0e-X0:7:-D2e8clare::Syntax::KeywordHandling(3pm)
Impressum