line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::Attribute::IndexParserForm; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
23156
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
155
|
|
4
|
4
|
|
|
4
|
|
26
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
149
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
21
|
use Carp; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
288
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
20
|
use parent qw/Enbld::Target::AttributeExtension::RegEx/; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
32
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub initialize { |
11
|
55
|
|
|
55
|
0
|
242
|
my ( $self, $param ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
55
|
100
|
|
|
|
372
|
if ( ! defined $param ) { |
14
|
|
|
|
|
|
|
$self->{callback} = sub { |
15
|
36
|
|
|
36
|
|
93
|
my $attributes = $self->{attributes}; |
16
|
36
|
|
|
|
|
192
|
my $form = '
17
|
36
|
|
|
|
|
382
|
$form .= '-' . $attributes->VersionForm . '\.'; |
18
|
36
|
|
|
|
|
198
|
$form .= quotemeta( $attributes->Extension ) . '">'; |
19
|
|
|
|
|
|
|
|
20
|
36
|
|
|
|
|
145
|
return $form; |
21
|
49
|
|
|
|
|
562
|
}; |
22
|
|
|
|
|
|
|
|
23
|
49
|
|
|
|
|
179
|
return $self; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
6
|
100
|
|
|
|
17
|
if ( $param ) { |
27
|
5
|
|
|
|
|
23
|
$self->SUPER::initialize( $param ); |
28
|
5
|
|
|
|
|
11
|
return $self; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
|
|
1
|
my $err = "Attribute 'IndexParserForm' isn't defined"; |
32
|
1
|
|
|
|
|
4
|
require Enbld::Exception; |
33
|
1
|
|
|
|
|
6
|
croak( Enbld::Exception->new( $err )); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |