line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Feature::Result; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
11
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
67
|
|
4
|
3
|
|
|
3
|
|
11
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
82
|
|
5
|
3
|
|
|
3
|
|
10
|
use base qw/Class::Accessor::Fast/; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
1162
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw/text title desc element root/); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
8
|
|
|
8
|
1
|
11
|
my $class = shift; |
10
|
8
|
|
|
|
|
14
|
my $self = bless {@_}, $class; |
11
|
8
|
|
|
|
|
13
|
return $self; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub element_delete { |
15
|
8
|
|
|
8
|
1
|
8
|
my $self = shift; |
16
|
8
|
100
|
|
|
|
16
|
if($self->root){ |
17
|
2
|
|
|
|
|
9
|
$self->root->delete(); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub DESTROY{ |
22
|
8
|
|
|
8
|
|
5318
|
my $self = shift; |
23
|
8
|
|
|
|
|
14
|
$self->element_delete(); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |