line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
25
|
use 5.008; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
44
|
|
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
3
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
68
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Class::Value::DefaultNotify; |
6
|
|
|
|
|
|
|
our $VERSION = '1.100840'; |
7
|
|
|
|
|
|
|
# ABSTRACT: Default notification delegate for value objects |
8
|
1
|
|
|
1
|
|
873
|
use parent 'Class::Value::Notify'; |
|
1
|
|
|
|
|
306
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub notify_value_not_wellformed { |
11
|
0
|
|
|
0
|
1
|
|
my ($self, $ref, $value) = @_; |
12
|
0
|
|
|
|
|
|
throw Class::Value::Exception::NotWellFormedValue( |
13
|
|
|
|
|
|
|
ref => $ref, |
14
|
|
|
|
|
|
|
value => $value, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub notify_value_invalid { |
19
|
0
|
|
|
0
|
1
|
|
my ($self, $ref, $value) = @_; |
20
|
0
|
|
|
|
|
|
throw Class::Value::Exception::InvalidValue( |
21
|
|
|
|
|
|
|
ref => $ref, |
22
|
|
|
|
|
|
|
value => $value, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub notify_value_normalized { |
27
|
0
|
|
|
0
|
1
|
|
my ($self, $ref, $value, $normalized) = @_; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# do nothing; normalization is ok here |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |