1Moose::Meta::TypeConstrUasienrt:C:oRnetgriisbturtye(d3M)Poeorsle:D:oMceutmae:n:tTaytpieoCnonstraint::Registry(3)
2
3
4

NAME

6       Moose::Meta::TypeConstraint::Registry - registry for type constraints
7

VERSION

9       version 2.2012
10

DESCRIPTION

12       This class is a registry that maps type constraint names to
13       Moose::Meta::TypeConstraint objects.
14
15       Currently, it is only used internally by Moose::Util::TypeConstraints,
16       which creates a single global registry.
17

INHERITANCE

19       "Moose::Meta::TypeConstraint::Registry" is a subclass of
20       Class::MOP::Object.
21

METHODS

23   Moose::Meta::TypeConstraint::Registry->new(%options)
24       This creates a new registry object based on the provided %options:
25
26       ·   parent_registry
27
28           This is an optional Moose::Meta::TypeConstraint::Registry object.
29
30       ·   type_constraints
31
32           This is hash reference of type names to type objects. This is
33           optional. Constraints can be added to the registry after it is
34           created.
35
36   $registry->get_parent_registry
37       Returns the registry's parent registry, if it has one.
38
39   $registry->has_parent_registry
40       Returns true if the registry has a parent.
41
42   $registry->set_parent_registry($registry)
43       Sets the parent registry.
44
45   $registry->get_type_constraint($type_name)
46       This returns the Moose::Meta::TypeConstraint object from the registry
47       for the given name, if one exists.
48
49   $registry->has_type_constraint($type_name)
50       Returns true if the registry has a type of the given name.
51
52   $registry->add_type_constraint($type)
53       Adds a new Moose::Meta::TypeConstraint object to the registry.
54
55   $registry->find_type_constraint($type_name)
56       This method looks in the current registry for the named type. If the
57       type is not found, then this method will look in the registry's parent,
58       if it has one.
59

BUGS

61       See "BUGS" in Moose for details on reporting bugs.
62

AUTHORS

64       ·   Stevan Little <stevan.little@iinteractive.com>
65
66       ·   Dave Rolsky <autarch@urth.org>
67
68       ·   Jesse Luehrs <doy@tozt.net>
69
70       ·   Shawn M Moore <code@sartak.org>
71
72       ·   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
73
74       ·   Karen Etheridge <ether@cpan.org>
75
76       ·   Florian Ragwitz <rafl@debian.org>
77
78       ·   Hans Dieter Pearcey <hdp@weftsoar.net>
79
80       ·   Chris Prather <chris@prather.org>
81
82       ·   Matt S Trout <mst@shadowcat.co.uk>
83
85       This software is copyright (c) 2006 by Infinity Interactive, Inc.
86
87       This is free software; you can redistribute it and/or modify it under
88       the same terms as the Perl 5 programming language system itself.
89
90
91
92perl v5.30.1                      2020-M0o1o-s3e0::Meta::TypeConstraint::Registry(3)
Impressum