line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- mode: perl; coding: utf-8 -*- |
2
|
|
|
|
|
|
|
package YATT::LRXML::MetaInfo; |
3
|
7
|
|
|
7
|
|
27
|
use strict; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
246
|
|
4
|
7
|
|
|
7
|
|
26
|
use warnings FATAL => qw(all); |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
247
|
|
5
|
7
|
|
|
7
|
|
24
|
use base qw(YATT::Class::Configurable); |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
633
|
|
6
|
7
|
|
|
7
|
|
31
|
BEGIN {require Exporter; *import = \&Exporter::import} |
|
7
|
|
|
|
|
572
|
|
7
|
|
|
|
|
|
|
our @EXPORT = qw(MetaInfo); |
8
|
|
|
|
|
|
|
our @EXPORT_OK = @EXPORT; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub MetaInfo () {__PACKAGE__} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use YATT::Fields |
13
|
7
|
|
|
0
|
|
64
|
(['^nsdict' => sub { {} }] |
|
0
|
|
|
|
|
0
|
|
14
|
|
|
|
|
|
|
, ['cf_namespace' => 'yatt'] |
15
|
|
|
|
|
|
|
, [cf_startline => 1] |
16
|
|
|
|
|
|
|
, qw(^=tokens |
17
|
|
|
|
|
|
|
^cf_filename |
18
|
|
|
|
|
|
|
cf_nsid |
19
|
|
|
|
|
|
|
cf_iolayer |
20
|
|
|
|
|
|
|
^cf_caller_widget |
21
|
|
|
|
|
|
|
) |
22
|
7
|
|
|
7
|
|
30
|
); |
|
7
|
|
|
|
|
8
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub after_configure { |
25
|
731
|
|
|
731
|
0
|
786
|
my MY $self = shift; |
26
|
731
|
|
|
|
|
1698
|
$self->SUPER::after_configure; |
27
|
731
|
50
|
|
|
|
1862
|
if (defined $self->{cf_namespace}) { |
28
|
731
|
|
|
|
|
1925
|
my $nsdict = $self->{nsdict} = {}; |
29
|
731
|
100
|
|
|
|
1885
|
$self->{cf_namespace} = [$self->{cf_namespace}] |
30
|
|
|
|
|
|
|
unless ref $self->{cf_namespace} eq 'ARRAY'; |
31
|
731
|
|
|
|
|
576
|
foreach my $ns (@{$self->{cf_namespace}}) { |
|
731
|
|
|
|
|
1298
|
|
32
|
1295
|
|
|
|
|
2795
|
$nsdict->{$ns} = keys %$nsdict; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} else { |
35
|
0
|
|
|
|
|
0
|
$self->{nsdict} = {}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub in_file { |
40
|
2
|
|
|
2
|
0
|
4
|
(my MY $self) = @_; |
41
|
2
|
100
|
|
|
|
8
|
if (defined $$self{cf_filename}) { |
42
|
1
|
|
|
|
|
8
|
" in file $$self{cf_filename}"; |
43
|
|
|
|
|
|
|
} else { |
44
|
1
|
|
|
|
|
7
|
''; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |