line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::Document; |
2
|
3
|
|
|
3
|
|
21
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
82
|
|
3
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
767
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $counter = 0; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new |
10
|
|
|
|
|
|
|
{ |
11
|
0
|
|
|
0
|
1
|
0
|
my ($class,$word) = @_; |
12
|
0
|
|
|
|
|
0
|
my $this = {}; |
13
|
0
|
|
|
|
|
0
|
bless ($this,$class); |
14
|
0
|
|
|
|
|
0
|
$this->{ID} = $counter; |
15
|
0
|
|
|
|
|
0
|
$this->{NAME} = $word->getLexItem->getIF; |
16
|
0
|
|
|
|
|
0
|
return $this; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub newDefault |
20
|
|
|
|
|
|
|
{ |
21
|
3
|
|
|
3
|
1
|
9
|
my ($class,$word) = @_; |
22
|
3
|
|
|
|
|
7
|
my $this = {}; |
23
|
3
|
|
|
|
|
9
|
bless ($this,$class); |
24
|
3
|
|
|
|
|
14
|
$this->{ID} = 0; |
25
|
3
|
|
|
|
|
15
|
$this->{NAME} = "no_name"; |
26
|
3
|
|
|
|
|
11
|
return $this; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub getID |
30
|
|
|
|
|
|
|
{ |
31
|
660
|
|
|
660
|
1
|
1016
|
my ($this) = @_; |
32
|
660
|
|
|
|
|
1540
|
return $this->{ID}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub getName |
36
|
|
|
|
|
|
|
{ |
37
|
0
|
|
|
0
|
1
|
|
my ($this) = @_; |
38
|
0
|
|
|
|
|
|
return $this->{NAME}; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub update |
43
|
|
|
|
|
|
|
{ |
44
|
0
|
|
|
0
|
1
|
|
my ($this,$word) = @_; |
45
|
0
|
|
|
|
|
|
$this->{NAME} = $word->getLexItem->getIF; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |