| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Lingua::Ogmios::Annotations::Stem; |
|
2
|
|
|
|
|
|
|
|
|
3
|
16
|
|
|
16
|
|
70
|
use strict; |
|
|
16
|
|
|
|
|
27
|
|
|
|
16
|
|
|
|
|
350
|
|
|
4
|
16
|
|
|
16
|
|
69
|
use warnings; |
|
|
16
|
|
|
|
|
26
|
|
|
|
16
|
|
|
|
|
350
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
16
|
|
|
16
|
|
72
|
use Lingua::Ogmios::Annotations::Element; |
|
|
16
|
|
|
|
|
25
|
|
|
|
16
|
|
|
|
|
7594
|
|
|
7
|
|
|
|
|
|
|
our @ISA = qw(Lingua::Ogmios::Annotations::Element); |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# |
|
11
|
|
|
|
|
|
|
# |
|
12
|
|
|
|
|
|
|
# |
|
13
|
|
|
|
|
|
|
# |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# |
|
16
|
|
|
|
|
|
|
#
|
|
17
|
|
|
|
|
|
|
# refid_word, form?) > |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# |
|
20
|
|
|
|
|
|
|
# |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub new { |
|
23
|
0
|
|
|
0
|
0
|
|
my ($class, $fields) = @_; |
|
24
|
|
|
|
|
|
|
|
|
25
|
0
|
0
|
|
|
|
|
if (!defined $fields->{'id'}) { |
|
26
|
0
|
|
|
|
|
|
$fields->{'id'} = -1; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
0
|
0
|
|
|
|
|
if (!defined $fields->{'refid_word'}) { # refid_word |
|
29
|
0
|
|
|
|
|
|
die("refid_word is not defined"); |
|
30
|
|
|
|
|
|
|
} |
|
31
|
0
|
0
|
|
|
|
|
if (!defined $fields->{'stem_form'}) { # stem_form |
|
32
|
0
|
|
|
|
|
|
die("stem_form is not defined"); |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
my $stem = $class->SUPER::new({ |
|
35
|
0
|
|
|
|
|
|
'id' => $fields->{'id'}, |
|
36
|
|
|
|
|
|
|
# 'form' => $fields->{'form'}, |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
); |
|
39
|
0
|
|
|
|
|
|
bless ($stem,$class); |
|
40
|
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
$stem->stem_form($fields->{'stem_form'}); |
|
42
|
0
|
|
|
|
|
|
$stem->refid_word($fields->{'refid_word'}); |
|
43
|
|
|
|
|
|
|
|
|
44
|
0
|
0
|
|
|
|
|
if (defined $fields->{'log_id'}) { |
|
45
|
0
|
|
|
|
|
|
$stem->setLogId($fields->{'log_id'}); |
|
46
|
|
|
|
|
|
|
} |
|
47
|
0
|
|
|
|
|
|
return($stem); |
|
48
|
|
|
|
|
|
|
} |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub refid_word { |
|
51
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
52
|
|
|
|
|
|
|
|
|
53
|
0
|
0
|
|
|
|
|
$self->{'refid_word'} = shift if @_; |
|
54
|
0
|
|
|
|
|
|
return($self->{'refid_word'}); |
|
55
|
|
|
|
|
|
|
} |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub stem_form { |
|
58
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
59
|
|
|
|
|
|
|
|
|
60
|
0
|
0
|
|
|
|
|
$self->{"stem_form"} = shift if @_; |
|
61
|
0
|
|
|
|
|
|
return($self->{"stem_form"}); |
|
62
|
|
|
|
|
|
|
} |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub setstem_form_idx { |
|
65
|
0
|
|
|
0
|
0
|
|
my ($self, $idx , $value) = @_; |
|
66
|
|
|
|
|
|
|
|
|
67
|
0
|
0
|
0
|
|
|
|
if ((defined $idx) && (defined $value)) { |
|
68
|
|
|
|
|
|
|
|
|
69
|
0
|
|
|
|
|
|
$self->stem_form->[$idx] = $value; |
|
70
|
0
|
|
|
|
|
|
return($value); |
|
71
|
|
|
|
|
|
|
} else { |
|
72
|
0
|
|
|
|
|
|
return(undef); |
|
73
|
|
|
|
|
|
|
} |
|
74
|
|
|
|
|
|
|
} |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
sub add_stem_form_idx { |
|
77
|
0
|
|
|
0
|
0
|
|
my ($self, $value) = @_; |
|
78
|
|
|
|
|
|
|
|
|
79
|
0
|
0
|
|
|
|
|
if (defined $value) { |
|
80
|
|
|
|
|
|
|
|
|
81
|
0
|
|
|
|
|
|
push @{$self->stem_form}, $value; |
|
|
0
|
|
|
|
|
|
|
|
82
|
0
|
|
|
|
|
|
return($value); |
|
83
|
|
|
|
|
|
|
} else { |
|
84
|
0
|
|
|
|
|
|
return(undef); |
|
85
|
|
|
|
|
|
|
} |
|
86
|
|
|
|
|
|
|
} |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub getstem_form_idx { |
|
90
|
0
|
|
|
0
|
0
|
|
my ($self, $idx) = @_; |
|
91
|
|
|
|
|
|
|
|
|
92
|
0
|
0
|
|
|
|
|
if (defined $idx) { |
|
93
|
0
|
|
|
|
|
|
return($self->stem_form->[$idx]); |
|
94
|
|
|
|
|
|
|
} else { |
|
95
|
0
|
|
|
|
|
|
return(undef); |
|
96
|
|
|
|
|
|
|
} |
|
97
|
|
|
|
|
|
|
} |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
sub XMLout { |
|
100
|
0
|
|
|
0
|
0
|
|
my ($self, $order) = @_; |
|
101
|
|
|
|
|
|
|
|
|
102
|
0
|
|
|
|
|
|
return($self->SUPER::XMLout("stem", $order)); |
|
103
|
|
|
|
|
|
|
} |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
1; |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
__END__ |