line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::File; |
2
|
5
|
|
|
5
|
|
35
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
140
|
|
3
|
5
|
|
|
5
|
|
25
|
use warnings; |
|
5
|
|
|
|
|
78
|
|
|
5
|
|
|
|
|
1546
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
70
|
|
|
70
|
1
|
132
|
my ($class,$repository,$name) = @_; |
11
|
70
|
|
|
|
|
162
|
my $this = {}; |
12
|
70
|
|
|
|
|
120
|
bless ($this,$class); |
13
|
70
|
|
|
|
|
152
|
$this->{INTERNAL_NAME} = (); |
14
|
70
|
|
|
|
|
123
|
$this->{FULL_NAME} = $name; |
15
|
70
|
|
|
|
|
187
|
$this->{PATH} = $repository . "/" . $this->{FULL_NAME}; |
16
|
70
|
|
|
|
|
164
|
$this->setInternalName; |
17
|
70
|
|
|
|
|
158
|
return $this; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub getPath |
23
|
|
|
|
|
|
|
{ |
24
|
52
|
|
|
52
|
1
|
113
|
my ($this) = @_; |
25
|
52
|
|
|
|
|
821
|
return $this->{PATH}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub getFullName |
29
|
|
|
|
|
|
|
{ |
30
|
119
|
|
|
119
|
1
|
168
|
my ($this) = @_; |
31
|
119
|
|
|
|
|
354
|
return $this->{FULL_NAME}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub getInternalName |
35
|
|
|
|
|
|
|
{ |
36
|
70
|
|
|
70
|
1
|
111
|
my ($this) = @_; |
37
|
70
|
|
|
|
|
260
|
return $this->{INTERNAL_NAME}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub setInternalName |
41
|
|
|
|
|
|
|
{ |
42
|
70
|
|
|
70
|
1
|
107
|
my ($this) = @_; |
43
|
|
|
|
|
|
|
|
44
|
70
|
100
|
|
|
|
121
|
if($this->getFullName =~ /^(.+)\.[^\.]+$/) |
45
|
|
|
|
|
|
|
{ |
46
|
21
|
|
|
|
|
65
|
$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__ |