line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Widgets::NavMenu::Object; |
2
|
|
|
|
|
|
|
$HTML::Widgets::NavMenu::Object::VERSION = '1.0901'; |
3
|
18
|
|
|
18
|
|
6656
|
use strict; |
|
18
|
|
|
|
|
35
|
|
|
18
|
|
|
|
|
423
|
|
4
|
18
|
|
|
18
|
|
73
|
use warnings; |
|
18
|
|
|
|
|
27
|
|
|
18
|
|
|
|
|
351
|
|
5
|
|
|
|
|
|
|
|
6
|
18
|
|
|
18
|
|
6993
|
use Class::XSAccessor (); |
|
18
|
|
|
|
|
36070
|
|
|
18
|
|
|
|
|
3658
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
3546
|
|
|
3546
|
1
|
14409
|
my $class = shift; |
11
|
3546
|
|
|
|
|
4580
|
my $self = {}; |
12
|
|
|
|
|
|
|
|
13
|
3546
|
|
|
|
|
5107
|
bless $self, $class; |
14
|
|
|
|
|
|
|
|
15
|
3546
|
|
|
|
|
8373
|
$self->_init(@_); |
16
|
|
|
|
|
|
|
|
17
|
3533
|
|
|
|
|
6873
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _init |
21
|
|
|
|
|
|
|
{ |
22
|
3
|
|
|
3
|
|
4
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
|
|
5
|
return 0; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub destroy_ |
28
|
|
|
|
|
|
|
{ |
29
|
3546
|
|
|
3546
|
1
|
3988
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
3546
|
|
|
|
|
12296
|
return 0; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub DESTROY |
35
|
|
|
|
|
|
|
{ |
36
|
3546
|
|
|
3546
|
|
83746
|
my $self = shift; |
37
|
|
|
|
|
|
|
|
38
|
3546
|
|
|
|
|
5357
|
$self->destroy_(); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub mk_accessors |
43
|
|
|
|
|
|
|
{ |
44
|
1
|
|
|
1
|
1
|
78
|
my $package = shift; |
45
|
1
|
|
|
|
|
6
|
return $package->mk_acc_ref( [@_] ); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub mk_acc_ref |
50
|
|
|
|
|
|
|
{ |
51
|
145
|
|
|
145
|
1
|
293
|
my $package = shift; |
52
|
145
|
|
|
|
|
202
|
my $names = shift; |
53
|
|
|
|
|
|
|
|
54
|
145
|
|
|
|
|
298
|
my $mapping = +{ map { $_ => $_ } @$names }; |
|
684
|
|
|
|
|
1381
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
## no critic |
57
|
145
|
|
|
|
|
8216
|
eval <<"EOF"; |
58
|
|
|
|
|
|
|
package $package; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Class::XSAccessor->import( |
61
|
|
|
|
|
|
|
accessors => \$mapping, |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
EOF |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
## use critic |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |