line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Aspect::Loader::Definition; |
2
|
1
|
|
|
1
|
|
86145
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
42
|
|
3
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
512
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new{ |
6
|
3
|
|
|
3
|
0
|
22
|
my $class = shift; |
7
|
3
|
|
|
|
|
6
|
my $resource = shift; |
8
|
3
|
|
|
|
|
13
|
my $self = { |
9
|
|
|
|
|
|
|
_call => undef, |
10
|
|
|
|
|
|
|
_library => undef, |
11
|
|
|
|
|
|
|
_class_name => undef, |
12
|
|
|
|
|
|
|
}; |
13
|
3
|
|
|
|
|
10
|
bless $self,$class; |
14
|
3
|
|
|
|
|
11
|
$self->initialize($resource); |
15
|
3
|
|
|
|
|
9
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub set_library{ |
19
|
3
|
|
|
3
|
0
|
4
|
my $self = shift; |
20
|
3
|
|
|
|
|
8
|
$self->{_library} = shift; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub set_call{ |
25
|
3
|
|
|
3
|
0
|
5
|
my $self = shift; |
26
|
3
|
|
|
|
|
12
|
$self->{_call} = shift; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub set_class_name{ |
30
|
5
|
|
|
5
|
0
|
6
|
my $self = shift; |
31
|
5
|
|
|
|
|
15
|
$self->{_class_name} = shift; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub get_library{ |
35
|
3
|
|
|
3
|
0
|
84
|
my $self = shift; |
36
|
3
|
|
|
|
|
18
|
return $self->{_library}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub get_call{ |
41
|
5
|
|
|
5
|
0
|
10
|
my $self = shift; |
42
|
5
|
|
|
|
|
43
|
return $self->{_call}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub get_class_name{ |
46
|
6
|
|
|
6
|
0
|
10
|
my $self = shift; |
47
|
6
|
|
|
|
|
32
|
return $self->{_class_name}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub initialize{ |
51
|
3
|
|
|
3
|
0
|
6
|
my $self = shift; |
52
|
3
|
|
|
|
|
24
|
my $resource = shift; |
53
|
3
|
|
|
|
|
13
|
$self->set_call($resource->{call}); |
54
|
3
|
|
|
|
|
12
|
$self->set_class_name($resource->{class_name}); |
55
|
3
|
100
|
66
|
|
|
10
|
if(!$self->get_class_name and $self->get_call =~ /^(.*)::[^:]*/){ |
56
|
2
|
|
|
|
|
13
|
$self->set_class_name($1); |
57
|
|
|
|
|
|
|
} |
58
|
3
|
|
|
|
|
8
|
$self->set_library($resource->{library}); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
1; |