1Moose::Meta::TypeConstrUasienrt(C3o)ntributed Perl DocumMeonotsaet:i:oMneta::TypeConstraint(3)
2
3
4

NAME

6       Moose::Meta::TypeConstraint - The Moose Type Constraint metaclass
7

DESCRIPTION

9       For the most part, the only time you will ever encounter an instance of
10       this class is if you are doing some serious deep introspection. This
11       API should not be considered final, but it is highly unlikely that this
12       will matter to a regular Moose user.
13
14       If you wish to use features at this depth, please come to the #moose
15       IRC channel on irc.perl.org and we can talk :)
16

METHODS

18       meta
19       new
20       is_a_type_of ($type_name)
21           This checks the current type name, and if it does not match, checks
22           if it is a subtype of it.
23
24       is_subtype_of ($type_name)
25       compile_type_constraint
26       coerce ($value)
27           This will apply the type-coercion if applicable.
28
29       check ($value)
30           This method will return a true (1) if the $value passes the con‐
31           straint, and false (0) otherwise.
32
33       validate ($value)
34           This method is similar to "check", but it deals with the error mes‐
35           sage. If the $value passes the constraint, "undef" will be
36           returned. If the $value does not pass the constraint, then the
37           "message" will be used to construct a custom error message.
38
39       name
40       parent
41       has_parent
42       constraint
43       has_message
44       message
45       has_coercion
46       coercion
47       hand_optimized_type_constraint
48       has_hand_optimized_type_constraint
49
50       DEPRECATED METHOD
51
52       union
53           This was just bad idea on my part,.. use the Moose::Meta::TypeCon‐
54           straint::Union itself instead.
55

BUGS

57       All complex software has bugs lurking in it, and this module is no
58       exception. If you find a bug please either email me, or add the bug to
59       cpan-RT.
60

AUTHOR

62       Stevan Little <stevan@iinteractive.com>
63
65       Copyright 2006, 2007 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.8.8                       2007-09-06    Moose::Meta::TypeConstraint(3)
Impressum