1Parse::Method::SignaturUesse:r:TCyopnetCroinbsuPttareradsienP:te:(rM3le)tDhoocdu:m:eSnitgantaitounres::TypeConstraint(3)
2
3
4
6 Parse::Method::Signatures::TypeConstraint - turn parsed TC data into
7 Moose TC object
8
10 Class used to turn PPI elements into Moose::Meta::TypeConstraint
11 objects.
12
14 tc
15 Lazy Build.
16
17 The Moose::Meta::TypeConstraint object for this type constraint, built
18 when requested. "tc_callback" will be called for each individual
19 component type in turn.
20
21 tc_callback
22 Type: CodeRef
23
24 Default: "find_registered_constraint"
25
26 Callback used to turn type names into type objects. See
27 "type_constraint_callback" in Parse::Method::Signatures for more
28 details and an example.
29
30 from_namespace
31 Type: ClassName
32
33 If provided, then the default "tc_callback" will search for
34 MooseX::Types in this package.
35
37 find_registered_constraint
38 Will search for an imported MooseX::Types in "from_namespace" (if
39 provided). Failing that it will ask the
40 Moose::Meta::TypeConstraint::Registry for a type with the given name.
41
42 If all else fails, it will simple return the type as a string, so that
43 Moose's auto-vivification of classnames to type will work.
44
45 to_string
46 String representation of the type constraint, approximately as parsed.
47
49 Parse::Method::Signatures, MooseX::Types, MooseX::Types::Util.
50
52 Florian Ragwitz <rafl@debian.org>.
53
54 Ash Berlin <ash@cpan.org>.
55
57 Licensed under the same terms as Perl itself.
58
59
60
61perl v5.34.0 2P0a2r1s-e0:7:-M2e2thod::Signatures::TypeConstraint(3)