blib/lib/MarpaX/ESLIF/Grammar/Properties.pm

filter: Statementstmt 20.9% 9 / 43 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 10.0% 2 / 20 Podpod 100% 18 / 18 totaltotal 35.8% 29 / 81 CC 1 SCAR 6.4
CC
1
Cov
21%
new
2.0
getLevel
2.0
getMaxLevel
2.0
CRAP 1.9
« blib/lib/MarpaX/ESLIF/Grammar/Rule/Properties.pm ↑ Summary blib/lib/MarpaX/ESLIF/Recognizer.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::ESLIF::Grammar::Properties;
5  
6 # ABSTRACT: ESLIF Grammar Properties
7  
8 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
9  
10 1 our $VERSION = '6.0.35.1'; # VERSION
11  
12  
13 #
14 # old-style perl - getters only in java style
15 #
16  
17  
18 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
19 0 my ($pkg, %args) = @_;
20 #
21 # This should be called ONLY by the XS, and we know what we do
22 #
23 return bless { level => $args{level},
24 maxLevel => $args{maxLevel},
25 description => $args{description},
26 latm => $args{latm},
27 discardIsFallback => $args{discardIsFallback},
28 defaultSymbolAction => $args{defaultSymbolAction},
29 defaultRuleAction => $args{defaultRuleAction},
30 defaultEventAction => $args{defaultEventAction},
31 defaultRegexAction => $args{defaultRegexAction},
32 startId => $args{startId},
33 discardId => $args{discardId},
34 symbolIds => $args{symbolIds},
35 ruleIds => $args{ruleIds},
36 defaultEncoding => $args{defaultEncoding},
37 fallbackEncoding => $args{fallbackEncoding}
38 0 }, $pkg
39 }
40  
41 #
42 # Explicit getters - XS and this file are in sync, fallbacks to undef value if not
43 #
44  
45  
46 0 ▶sub getLevel {
Subroutine getLevel: not called CC=1 SCAR=6.9
Pod documented
47 0 my ($self) = @_;
48  
49 return $self->{level}
50 0 }
51  
52  
53 0 ▶sub getMaxLevel {
Subroutine getMaxLevel: not called CC=1 SCAR=6.9
Pod documented
54 0 my ($self) = @_;
55  
56 return $self->{maxLevel}
57 0 }
58  
59  
60 0 ▶sub getDescription {
Subroutine getDescription: not called CC=1 SCAR=6.9
Pod documented
61 0 my ($self) = @_;
62  
63 return $self->{description}
64 0 }
65  
66  
67 0 ▶sub isLatm {
Subroutine isLatm: not called CC=1 SCAR=6.9
Pod documented
68 0 my ($self) = @_;
69  
70 return $self->{latm}
71 0 }
72  
73  
74 0 ▶sub getLatm {
Subroutine getLatm: not called CC=1 SCAR=6.9
Pod documented
75 0 goto &isLatm
76 }
77  
78  
79 0 ▶sub isDiscardIsFallback {
Subroutine isDiscardIsFallback: not called CC=1 SCAR=6.9
Pod documented
80 0 my ($self) = @_;
81  
82 return $self->{discardIsFallback}
83 0 }
84  
85  
86 0 ▶sub getDiscardIsFallback {
Subroutine getDiscardIsFallback: not called CC=1 SCAR=6.9
Pod documented
87 0 goto &isDiscardIsFallback
88 }
89  
90  
91 0 ▶sub getDefaultSymbolAction {
Subroutine getDefaultSymbolAction: not called CC=1 SCAR=6.9
Pod documented
92 0 my ($self) = @_;
93  
94 return $self->{defaultSymbolAction}
95 0 }
96  
97  
98 0 ▶sub getDefaultRuleAction {
Subroutine getDefaultRuleAction: not called CC=1 SCAR=6.9
Pod documented
99 0 my ($self) = @_;
100  
101 return $self->{defaultRuleAction}
102 0 }
103  
104  
105 0 ▶sub getDefaultEventAction {
Subroutine getDefaultEventAction: not called CC=1 SCAR=6.9
Pod documented
106 0 my ($self) = @_;
107  
108 return $self->{defaultEventAction}
109 0 }
110  
111  
112 0 ▶sub getDefaultRegexAction {
Subroutine getDefaultRegexAction: not called CC=1 SCAR=6.9
Pod documented
113 0 my ($self) = @_;
114  
115 return $self->{defaultRegexAction}
116 0 }
117  
118  
119 0 ▶sub getStartId {
Subroutine getStartId: not called CC=1 SCAR=6.9
Pod documented
120 0 my ($self) = @_;
121  
122 return $self->{startId}
123 0 }
124  
125  
126 0 ▶sub getDiscardId {
Subroutine getDiscardId: not called CC=1 SCAR=6.9
Pod documented
127 0 my ($self) = @_;
128  
129 return $self->{discardId}
130 0 }
131  
132  
133 0 ▶sub getSymbolIds {
Subroutine getSymbolIds: not called CC=1 SCAR=6.9
Pod documented
134 0 my ($self) = @_;
135  
136 return $self->{symbolIds}
137 0 }
138  
139  
140 0 ▶sub getRuleIds {
Subroutine getRuleIds: not called CC=1 SCAR=6.9
Pod documented
141 0 my ($self) = @_;
142  
143 return $self->{ruleIds}
144 0 }
145  
146  
147 0 ▶sub getDefaultEncoding {
Subroutine getDefaultEncoding: not called CC=1 SCAR=6.9
Pod documented
148 0 my ($self) = @_;
149  
150 return $self->{defaultEncoding}
151 0 }
152  
153  
154 0 ▶sub getFallbackEncoding {
Subroutine getFallbackEncoding: not called CC=1 SCAR=6.9
Pod documented
155 0 my ($self) = @_;
156  
157 return $self->{fallbackEncoding}
158 0 }
159  
160 1 1;
161  
162 __END__
« blib/lib/MarpaX/ESLIF/Grammar/Rule/Properties.pm ↑ Summary blib/lib/MarpaX/ESLIF/Recognizer.pm »