line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Widgets::NavMenu::Object; |
2
|
|
|
|
|
|
|
$HTML::Widgets::NavMenu::Object::VERSION = '1.1000'; |
3
|
18
|
|
|
18
|
|
6990
|
use strict; |
|
18
|
|
|
|
|
35
|
|
|
18
|
|
|
|
|
414
|
|
4
|
18
|
|
|
18
|
|
75
|
use warnings; |
|
18
|
|
|
|
|
32
|
|
|
18
|
|
|
|
|
363
|
|
5
|
|
|
|
|
|
|
|
6
|
18
|
|
|
18
|
|
6662
|
use Class::XSAccessor (); |
|
18
|
|
|
|
|
37284
|
|
|
18
|
|
|
|
|
3583
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
3671
|
|
|
3671
|
1
|
14399
|
my $class = shift; |
11
|
3671
|
|
|
|
|
4707
|
my $self = {}; |
12
|
|
|
|
|
|
|
|
13
|
3671
|
|
|
|
|
5209
|
bless $self, $class; |
14
|
|
|
|
|
|
|
|
15
|
3671
|
|
|
|
|
8873
|
$self->_init(@_); |
16
|
|
|
|
|
|
|
|
17
|
3658
|
|
|
|
|
7208
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _init |
21
|
|
|
|
|
|
|
{ |
22
|
3
|
|
|
3
|
|
5
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
|
|
6
|
return 0; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub destroy_ |
28
|
|
|
|
|
|
|
{ |
29
|
3671
|
|
|
3671
|
1
|
4159
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
3671
|
|
|
|
|
12260
|
return 0; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub DESTROY |
35
|
|
|
|
|
|
|
{ |
36
|
3671
|
|
|
3671
|
|
83297
|
my $self = shift; |
37
|
|
|
|
|
|
|
|
38
|
3671
|
|
|
|
|
5460
|
$self->destroy_(); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub mk_accessors |
43
|
|
|
|
|
|
|
{ |
44
|
1
|
|
|
1
|
1
|
80
|
my $package = shift; |
45
|
1
|
|
|
|
|
5
|
return $package->mk_acc_ref( [@_] ); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub mk_acc_ref |
50
|
|
|
|
|
|
|
{ |
51
|
145
|
|
|
145
|
1
|
289
|
my $package = shift; |
52
|
145
|
|
|
|
|
195
|
my $names = shift; |
53
|
|
|
|
|
|
|
|
54
|
145
|
|
|
|
|
285
|
my $mapping = +{ map { $_ => $_ } @$names }; |
|
684
|
|
|
|
|
1330
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
## no critic |
57
|
145
|
|
|
|
|
8344
|
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__ |