line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Object::Autobox::Autoload::Hash; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1421
|
use 5.010; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
57
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
5
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
49
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use Carp 'confess'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
93
|
|
8
|
1
|
|
|
1
|
|
7
|
use Data::Object 'type_hash'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
70
|
|
9
|
1
|
|
|
1
|
|
8
|
use Scalar::Util 'blessed'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
295
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub AUTOLOAD { |
12
|
0
|
|
|
0
|
|
|
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $delegate = 'Data::Object::Hash'; |
15
|
0
|
|
|
|
|
|
my $self = $_[0] = type_hash $_[0]; |
16
|
|
|
|
|
|
|
|
17
|
0
|
0
|
0
|
|
|
|
confess "Undefined subroutine &${delegate}::$method called" |
18
|
|
|
|
|
|
|
unless blessed $self && $self->isa($delegate); |
19
|
|
|
|
|
|
|
|
20
|
0
|
0
|
|
|
|
|
confess "Can't locate object method \"$method\" via package \"$delegate\"" |
21
|
|
|
|
|
|
|
unless my $source = $self->can($method); |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
goto $source; # delegate to Data::Object::Hash ... |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |