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

DESCRIPTION

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

INHERITANCE

16       "Moose::Meta::TypeConstraint::Registry" is a subclass of
17       Class::MOP::Object.
18

METHODS

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

BUGS

59       See "BUGS" in Moose for details on reporting bugs.
60

AUTHOR

62       Stevan Little <stevan@iinteractive.com>
63
65       Copyright 2006-2010 by Infinity Interactive, Inc.
66
67       <http://www.iinteractive.com>
68
69       This library is free software; you can redistribute it and/or modify it
70       under the same terms as Perl itself.
71
72
73
74perl v5.12.2                      2010-M0o8o-s2e8::Meta::TypeConstraint::Registry(3)
Impressum