line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Widgets::NavMenu::Object; |
2
|
|
|
|
|
|
|
$HTML::Widgets::NavMenu::Object::VERSION = '1.0902'; |
3
|
18
|
|
|
18
|
|
6656
|
use strict; |
|
18
|
|
|
|
|
33
|
|
|
18
|
|
|
|
|
412
|
|
4
|
18
|
|
|
18
|
|
74
|
use warnings; |
|
18
|
|
|
|
|
27
|
|
|
18
|
|
|
|
|
342
|
|
5
|
|
|
|
|
|
|
|
6
|
18
|
|
|
18
|
|
6918
|
use Class::XSAccessor (); |
|
18
|
|
|
|
|
35361
|
|
|
18
|
|
|
|
|
3586
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
3671
|
|
|
3671
|
1
|
15401
|
my $class = shift; |
11
|
3671
|
|
|
|
|
4672
|
my $self = {}; |
12
|
|
|
|
|
|
|
|
13
|
3671
|
|
|
|
|
5169
|
bless $self, $class; |
14
|
|
|
|
|
|
|
|
15
|
3671
|
|
|
|
|
8727
|
$self->_init(@_); |
16
|
|
|
|
|
|
|
|
17
|
3658
|
|
|
|
|
7021
|
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
|
4127
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
3671
|
|
|
|
|
12918
|
return 0; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub DESTROY |
35
|
|
|
|
|
|
|
{ |
36
|
3671
|
|
|
3671
|
|
97933
|
my $self = shift; |
37
|
|
|
|
|
|
|
|
38
|
3671
|
|
|
|
|
5493
|
$self->destroy_(); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub mk_accessors |
43
|
|
|
|
|
|
|
{ |
44
|
1
|
|
|
1
|
1
|
83
|
my $package = shift; |
45
|
1
|
|
|
|
|
5
|
return $package->mk_acc_ref( [@_] ); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub mk_acc_ref |
50
|
|
|
|
|
|
|
{ |
51
|
145
|
|
|
145
|
1
|
287
|
my $package = shift; |
52
|
145
|
|
|
|
|
204
|
my $names = shift; |
53
|
|
|
|
|
|
|
|
54
|
145
|
|
|
|
|
274
|
my $mapping = +{ map { $_ => $_ } @$names }; |
|
684
|
|
|
|
|
1277
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
## no critic |
57
|
145
|
|
|
|
|
7999
|
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__ |