line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::File; |
2
|
5
|
|
|
5
|
|
36
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
142
|
|
3
|
5
|
|
|
5
|
|
28
|
use warnings; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
1474
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
70
|
|
|
70
|
1
|
119
|
my ($class,$repository,$name) = @_; |
11
|
70
|
|
|
|
|
121
|
my $this = {}; |
12
|
70
|
|
|
|
|
115
|
bless ($this,$class); |
13
|
70
|
|
|
|
|
145
|
$this->{INTERNAL_NAME} = (); |
14
|
70
|
|
|
|
|
115
|
$this->{FULL_NAME} = $name; |
15
|
70
|
|
|
|
|
200
|
$this->{PATH} = $repository . "/" . $this->{FULL_NAME}; |
16
|
70
|
|
|
|
|
182
|
$this->setInternalName; |
17
|
70
|
|
|
|
|
161
|
return $this; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub getPath |
23
|
|
|
|
|
|
|
{ |
24
|
52
|
|
|
52
|
1
|
114
|
my ($this) = @_; |
25
|
52
|
|
|
|
|
832
|
return $this->{PATH}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub getFullName |
29
|
|
|
|
|
|
|
{ |
30
|
119
|
|
|
119
|
1
|
194
|
my ($this) = @_; |
31
|
119
|
|
|
|
|
353
|
return $this->{FULL_NAME}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub getInternalName |
35
|
|
|
|
|
|
|
{ |
36
|
70
|
|
|
70
|
1
|
125
|
my ($this) = @_; |
37
|
70
|
|
|
|
|
264
|
return $this->{INTERNAL_NAME}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub setInternalName |
41
|
|
|
|
|
|
|
{ |
42
|
70
|
|
|
70
|
1
|
129
|
my ($this) = @_; |
43
|
|
|
|
|
|
|
|
44
|
70
|
100
|
|
|
|
111
|
if($this->getFullName =~ /^(.+)\.[^\.]+$/) |
45
|
|
|
|
|
|
|
{ |
46
|
21
|
|
|
|
|
66
|
$this->{INTERNAL_NAME} = $1; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
else |
49
|
|
|
|
|
|
|
{ |
50
|
49
|
|
|
|
|
81
|
$this->{INTERNAL_NAME} = $this->getFullName; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |