| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
=head1 NAME |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library - Constraint Library Bundle |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=cut |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Declare::Constraints::Simple::Library; |
|
8
|
12
|
|
|
12
|
|
9006
|
use warnings; |
|
|
12
|
|
|
|
|
29
|
|
|
|
12
|
|
|
|
|
407
|
|
|
9
|
12
|
|
|
12
|
|
63
|
use strict; |
|
|
12
|
|
|
|
|
24
|
|
|
|
12
|
|
|
|
|
725
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
12
|
|
|
|
|
21890
|
use base qw( |
|
12
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::General |
|
13
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::Scalar |
|
14
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::Numerical |
|
15
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::OO |
|
16
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::Referencial |
|
17
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::Hash |
|
18
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::Array |
|
19
|
|
|
|
|
|
|
Declare::Constraints::Simple::Library::Operators |
|
20
|
12
|
|
|
12
|
|
65
|
); |
|
|
12
|
|
|
|
|
113
|
|
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This module functions as bundle of all default libraries, and as map |
|
25
|
|
|
|
|
|
|
and/or reference of said ones. |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 LIBRARIES |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item L |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
General constraints and constraint-like elements that affect the whole |
|
34
|
|
|
|
|
|
|
framework. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Provides: C, C, C, C, C, |
|
37
|
|
|
|
|
|
|
C |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=item L |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Constraints for scalar value validation. |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Provides: C, C, C, C, C, |
|
44
|
|
|
|
|
|
|
C |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item L |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
These validate values by their numerical properties. |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Provides: C, C |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item L |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
For validation of values in an object oriented manner. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Provides: C, C, C, C |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item L |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
These can validate properties by their reference types. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Provides: C, C, C, C, |
|
63
|
|
|
|
|
|
|
C, C |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item L |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
These constraints deal with array references and their contents. |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Provides: C, L, L, |
|
70
|
|
|
|
|
|
|
L |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item L |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
All constraints appliable to hash references as well as their keys and |
|
75
|
|
|
|
|
|
|
values. |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Provides: C, C |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item L |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Operators can be used in any place a constraint can be used, as |
|
82
|
|
|
|
|
|
|
their implementations are similar. |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Provides: C, C, C, C, C |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=back |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
L |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Robert 'phaylon' Sedlacek Cphaylon@dunkelheit.atE> |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This module is free software, you can redistribute it and/or modify it |
|
99
|
|
|
|
|
|
|
under the same terms as perl itself. |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
1; |
|
104
|
|
|
|
|
|
|
|