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