HTML/HtmlVisitor.pm

filter: Statementstmt 3.3% 20 / 602 Branchbran 0.0% 0 / 180 Conditioncond 0.0% 0 / 59 MC/DCmcdc 0.0% 0 / 24 Subroutinesub 17.6% 6 / 34 Podpod 0.0% 0 / 12 totaltotal 2.8% 26 / 911 CC 138 SCAR 67.6
CC
138
Cov
2%
visitSpecification
2756.0
_format_decl_file
110.0
visitModules
72.0
CRAP 864.9
↑ Summary HTML/IndexVisitor.pm »
1
2 #
3 # Interface Definition Language (OMG IDL CORBA v3.0)
4 #
5
6 package CORBA::HTML::HtmlVisitor;
7
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10
11 1 our $VERSION = '2.60';
12
13 1 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use CORBA::HTML::NameVisitor;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use CORBA::HTML::DeclVisitor;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use CORBA::HTML::CommentVisitor;
Subroutine BEGIN: called CC=1 SCAR=0.0
17
18 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
19 0 my $proto = shift;
20 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
21 0 my $self = {};
22 0 bless $self, $class;
23 0 my ($parser) = @_;
24 0 $self->{parser} = $parser;
25 0 $self->{symbtab} = $parser->YYData->{symbtab};
26 0 $self->{frameset} = exists $parser->YYData->{opt_f};
27 0 $self->{html_name} = new CORBA::HTML::NameVisitor($parser);
28 0 $self->{html_decl} = new CORBA::HTML::DeclVisitor($self);
29 0 $self->{html_comment} = new CORBA::HTML::CommentVisitor($self);
30 0 $self->{scope} = q{};
31 0 $self->{css} = $parser->YYData->{opt_s};
32 0 $self->{style} = q{
33 a.index { font-weight : bold; }
34 h2 { color : red; }
35 p.comment { color : green; }
36 span.comment { color : green; }
37 span.decl { font-weight : bold; }
38 span.tag { font-weight : bold; }
39 hr { text-align : center; }
40 };
41 0 return $self;
42 }
43
44 0 ▶sub _get_defn {
Subroutine _get_defn: not called CC=2 SCAR=17.9
45 0 my $self = shift;
46 0 my($defn) = @_;
47 0 ▶ if (ref $defn) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $defn) { } 0 0 0
48 0 return $defn;
49 }
50 else {
51 0 return $self->{symbtab}->Lookup($defn);
52 }
53 }
54
55 0 ▶sub _get_name {
Subroutine _get_name: not called CC=1 SCAR=6.9
56 0 my $self = shift;
57 0 my ($node) = @_;
58 0 return $node->visit($self->{html_name}, $self->{scope});
59 }
60
61 0 ▶sub _print_decl {
Subroutine _print_decl: not called CC=1 SCAR=6.9
62 0 my $self = shift;
63 0 my ($node) = @_;
64 0 $node->visit($self->{html_decl}, \*OUT);
65 }
66
67 0 ▶sub _print_comment {
Subroutine _print_comment: not called CC=1 SCAR=6.9
68 0 my $self = shift;
69 0 my ($node) = @_;
70 0 $node->visit($self->{html_comment}, \*OUT);
71 0 print OUT " <p />\n";
72 }
73
74 0 ▶sub _sep_line {
Subroutine _sep_line: not called CC=1 SCAR=6.9
75 0 my $self = shift;
76 0 print OUT " <hr />\n";
77 }
78
79 0 ▶sub _format_head {
Subroutine _format_head: not called CC=6 SCAR=37.4
80 0 my $self = shift;
81 0 my ($title, $frameset, $target) = @_;
82 0 my $now = localtime();
83 # print OUT "<?xml version='1.0' encoding='ISO-8859-1'?>\n";
84 0 ▶ if ($frameset) {
Branch: 1 branch
BranchTrueFalseTotal
if ($frameset) { } 0 0 0
85 0 print OUT "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'>\n";
86 }
87 else {
88 0 print OUT "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n";
89 }
90 0 print OUT "<html xmlns='http://www.w3.org/1999/xhtml'>\n";
91 0 print OUT "\n";
92 0 print OUT " <head>\n";
93 0 print OUT " <meta name='generator' content='idl2html ",$CORBA::HTML::VERSION," (Perl ",$],")' />\n";
94 0 print OUT " <meta name='date' content='",$now,"' />\n";
95 0 print OUT " <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' />\n";
96 0 ▶ print OUT " <title>",$title,"</title>\n" if ($title);
Branch: 1 branch
BranchTrueFalseTotal
if $title 0 0 0
97 0 ▶ unless ($frameset) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($frameset) 0 0 0
98 0 ▶ print OUT " <base target='",$target,"' />\n" if (defined $target);
Branch: 1 branch
BranchTrueFalseTotal
if defined $target 0 0 0
99 0 ▶ if ($self->{css}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'css'}) { } 0 0 0
100 0 print OUT " <link href='",$self->{css},".css' rel='stylesheet' type='text/css'/>\n";
101 }
102 else {
103 0 print OUT " <style type='text/css'>\n";
104 0 print OUT $self->{style},"\n";
105 0 print OUT " </style>\n";
106 }
107 }
108 0 print OUT " </head>\n";
109 0 print OUT "\n";
110 }
111
112 0 ▶sub _format_head_main {
Subroutine _format_head_main: not called CC=2 SCAR=17.9
113 0 my $self = shift;
114 0 my ($title) = @_;
115 0 $self->_format_head($title, 0);
116 0 print OUT " <body>\n";
117 0 print OUT " <h1><a id='__Top__' name='__Top__'/>",$title,"</h1>\n";
118 print OUT " <p><a href='index.html'>Global index</a></p>\n"
119 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
120 0 print OUT " <hr />\n";
121 }
122
123 0 ▶sub _format_head_global_index {
Subroutine _format_head_global_index: not called CC=2 SCAR=17.9
124 0 my $self = shift;
125 0 my $title = 'Global index';
126 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'frameset'}) { } 0 0 0
127 0 $self->_format_head($title, 0, 'local');
128 0 print OUT " <body>\n";
129 }
130 else {
131 0 $self->_format_head($title, 0);
132 0 print OUT " <body>\n";
133 0 print OUT " <h1><a id='__Top__' name='__Top__'/>",$title,"</h1>\n";
134 0 print OUT " <hr />\n";
135 }
136 }
137
138 0 ▶sub _format_head_index {
Subroutine _format_head_index: not called CC=1 SCAR=6.9
139 0 my $self = shift;
140 0 my ($title) = @_;
141 0 $self->_format_head('Index ' . $title, 0, 'main');
142 0 print OUT " <body>\n";
143 0 print OUT " <h1><a href='_",$title,".html#__Top__'>",$title,"</a></h1>\n";
144 }
145
146 0 ▶sub _format_tail {
Subroutine _format_tail: not called CC=2 SCAR=17.9
147 0 my $self = shift;
148 0 my ($frameset) = @_;
149 0 ▶ unless ($frameset) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($frameset) 0 0 0
150 0 print OUT "\n";
151 0 print OUT " </body>\n";
152 }
153 0 print OUT "\n";
154 0 print OUT "</html>\n";
155 }
156
157 0 ▶sub _format_index {
Subroutine _format_index: not called CC=6 SCAR=37.4
158 0 my $self = shift;
159 0 my ($node, $rlist) = @_;
160 0 my $nb = 0;
161 0 foreach (@{$rlist}) {
162 0 my $idx = 'index_' . $_;
163 0 ▶ if (keys %{$node->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %{$$node{$idx};}) 0 0 0
164 0 $nb ++;
165 0 my $title = ucfirst $_;
166 0 $title =~ s/_/ /g;
167 0 print OUT "<h2>",$title," index.</h2>\n";
168 0 print OUT "<dl>\n";
169 0 foreach (sort keys %{$node->{$idx}}) {
170 0 my $child = $node->{$idx}->{$_};
171 0 print OUT " <dt><a class='index' href='",$child->{file_html},"#",$_,"'>";
172 0 print OUT $_,"</a></dt>\n";
173 }
174 0 print OUT "</dl>\n";
175 }
176 }
177 0 ▶ unless ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"frameset"}) 0 0 0
178 0 ▶ $self->_sep_line() if ($nb);
Branch: 1 branch
BranchTrueFalseTotal
if $nb 0 0 0
179 }
180 }
181
182 0 ▶sub _format_decl {
Subroutine _format_decl: not called CC=6 SCAR=37.4
183 0 my $self = shift;
184 0 my ($node, $rlist) = @_;
185 0 my $nb = 0;
186 0 foreach (@{$rlist}) {
187 0 my $idx = 'index_' . $_;
188 0 ▶ if (keys %{$node->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %{$$node{$idx};}) 0 0 0
189 0 $nb ++;
190 0 my $title = ucfirst $_;
191 0 $title =~ s/_/ /g;
192 0 print OUT "<h2>",$title,"s.</h2>\n";
193 0 ▶ if (scalar keys %{$node->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar keys %{$$node{$idx};}) 0 0 0
194 0 print OUT "<ul>\n";
195 0 foreach (sort keys %{$node->{$idx}}) {
196 0 my $child = $node->{$idx}->{$_};
197 0 print OUT " <li>\n";
198 0 print OUT " <h3><a id='",$_,"' name='",$_,"'/>",$_,"</h3>\n";
199 0 $self->_print_decl($child);
200 0 $self->_print_comment($child);
201 0 print OUT " </li>\n";
202 }
203 0 print OUT "</ul>\n";
204 }
205 }
206 }
207 0 ▶ $self->_sep_line() if ($nb);
Branch: 1 branch
BranchTrueFalseTotal
if $nb 0 0 0
208 0 print OUT " <div><cite>Generated by idl2html</cite></div>\n";
209 }
210
211 0 ▶sub _format_decl_file {
Subroutine _format_decl_file: not called CC=10 SCAR=47.0
212 0 my $self = shift;
213 0 my ($node, $rlist, $filename) = @_;
214 0 my $nb = 0;
215 0 foreach (@{$rlist}) {
216 0 my $idx = 'index_' . $_;
217 0 ▶ if (keys %{$node->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %{$$node{$idx};}) 0 0 0
218 0 $nb ++;
219 0 my $title = ucfirst $_;
220 0 $title =~ s/_/ /g;
221 0 print OUT "<h2>",$title,"s.</h2>\n";
222 0 ▶ if (scalar keys %{$node->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar keys %{$$node{$idx};}) 0 0 0
223 0 my $n = 0;
224 0 foreach (sort values %{$node->{$idx}}) {
225 0 ▶ $n ++ if ($_->{filename} eq $filename);
Branch: 1 branch
BranchTrueFalseTotal
if $_->{"filename"} eq $filename 0 0 0
226 }
227 0 ▶ if ($n) {
Branch: 1 branch
BranchTrueFalseTotal
if ($n) 0 0 0
228 0 print OUT "<ul>\n";
229 0 foreach (sort keys %{$node->{$idx}}) {
230 0 my $child = $node->{$idx}->{$_};
231 0 ▶ next unless ($child->{filename} eq $filename);
Branch: 1 branch
BranchTrueFalseTotal
unless $child->{"filename"} eq $filename 0 0 0
232 0 print OUT " <li>\n";
233 0 print OUT " <h3><a id='",$_,"' name='",$_,"'/>",$_,"</h3>\n";
234 0 $self->_print_decl($child);
235 0 $self->_print_comment($child);
236 0 print OUT " </li>\n";
237 }
238 0 print OUT "</ul>\n";
239 }
240 }
241 }
242 }
243 0 ▶ $self->_sep_line() if ($nb);
Branch: 1 branch
BranchTrueFalseTotal
if $nb 0 0 0
244 0 print OUT " <div><cite>Generated by idl2html</cite></div>\n";
245 }
246
247 0 ▶sub _examine_index {
Subroutine _examine_index: not called CC=7 SCAR=40.3
248 0 my $self = shift;
249 0 my ($node, $idx, $htree) = @_;
250
251 0 ▶ while (my ($idf, $defn) = each %{$node->{index_module}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{$$node{"index_module"};}) 0 0 0
252 $htree->{$idf} = {}
253 0 ▶ if (!exists $htree->{$idf} or $htree->{$idf} == 1);
Branch: 1 branch
BranchTrueFalseTotal
if not exists $htree->{$idf} or $htree->{$idf} == 1 0 0 0
Condition0%0/3
not exists $htree->{$idf} or $htree->{$idf} == 1
l!l&&r!l&&!r
000
MC/DC0%0/2
not exists $htree->{$idf} or $htree->{$idf} == 1
not exists $htree->{$idf} $htree->{$idf} == 1
Truth table0%0/3
not(A) or B
A= not exists $htree->{$idf}B= $htree->{$idf} == 1
ABresult
1X1
011
000
254 0 $self->_examine_index($defn, $idx, $htree->{$idf});
255 delete $htree->{$idf}
256 0 ▶ unless (scalar keys %{$htree->{$idf}});
Branch: 1 branch
BranchTrueFalseTotal
unless scalar keys %{$$htree{$idf};} 0 0 0
257 }
258 0 foreach (keys %{$node->{$idx}}) {
259 $htree->{$_} = 1
260 0 ▶ unless (exists $htree->{$_});
Branch: 1 branch
BranchTrueFalseTotal
unless exists $htree->{$_} 0 0 0
261 }
262 }
263
264 0 ▶sub _format_global_index {
Subroutine _format_global_index: not called CC=6 SCAR=37.4
265 0 my $self = shift;
266 0 my ($idx, $htree, $basename) = @_;
267
268 0 print OUT "<ul>\n";
269 0 foreach (sort keys %{$htree}) {
270 0 ▶ my $full = $basename ? $basename . '::' . $_ : $_;
Branch: 1 branch
BranchTrueFalseTotal
$basename ? : 0 0 0
271 0 my $filename = $full;
272 0 $filename =~ s/::/_/g;
273 $self->{first_filename} = $filename
274 0 ▶ unless (exists $self->{first_filename});
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"first_filename"} 0 0 0
275 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'frameset'}) { } 0 0 0
276 0 print OUT " <li><a class='index' href='index._",$filename,".html'>";
277 }
278 else {
279 0 print OUT " <li><a class='index' href='_",$filename,".html#__Top__'>";
280 }
281 0 ▶ if ($htree->{$_} == 1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($htree->{$_} == 1) { } 0 0 0
282 0 print OUT $full,"</a></li>\n";
283 }
284 else {
285 0 print OUT $full,"</a>\n";
286 0 $self->_format_global_index($idx, $htree->{$_}, $full);
287 0 print OUT "</li>\n";
288 }
289 }
290 0 print OUT "</ul>\n";
291 }
292
293 0 ▶sub _format_toc {
Subroutine _format_toc: not called CC=4 SCAR=30.0
294 0 my $self = shift;
295 0 my ($idx, $htree, $basename) = @_;
296
297 0 print OUT " <UL>\n"; # no XHTML
298 0 foreach (sort keys %{$htree}) {
299 0 ▶ my $full = $basename ? $basename . '::' . $_ : $_;
Branch: 1 branch
BranchTrueFalseTotal
$basename ? : 0 0 0
300 0 my $filename = $full;
301 0 $filename =~ s/::/_/g;
302 0 print OUT " <LI> <OBJECT type=\"text/sitemap\">\n";
303 0 print OUT " <param name=\"Name\" value=\"",$_,"\">\n";
304 0 print OUT " <param name=\"Local\" value=\"_",$filename,".html\">\n";
305 0 print OUT " </OBJECT>\n";
306 0 ▶ unless ($htree->{$_} == 1) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($htree->{$_} == 1) 0 0 0
307 0 $self->_format_toc($idx, $htree->{$_}, $full);
308 }
309 }
310 0 print OUT " </UL>\n";
311 }
312
313 #
314 # 3.5 OMG IDL Specification
315 #
316
317 0 ▶sub visitSpecification {
Subroutine visitSpecification: not called CC=52 SCAR=79.2
Pod undocumented
318 0 my $self = shift;
319 0 my ($node) = @_;
320
321 0 my @list_call = (
322 'module',
323 'interface',
324 'value',
325 'event',
326 'component',
327 'home'
328 );
329 0 foreach (@list_call) {
330 0 my $idx = 'index_' . $_;
331 0 foreach (values %{$node->{$idx}}) {
332 0 $_->visit($self);
333 }
334 }
335
336 0 my @list_decl = (
337 'boxed_value',
338 'type',
339 'exception',
340 'constant'
341 );
342 0 my %alone;
343 0 foreach (@list_decl) {
344 0 my $idx = 'index_' . $_;
345 0 foreach (values %{$node->{$idx}}) {
346 0 my $defn = $self->_get_defn($_);
347 0 $alone{$defn->{filename}} = 1;
348 }
349 }
350 0 foreach (keys %alone) {
351 0 my $filename = '__' . basename($_, '.idl') . '.html';
352 0 ▶ open OUT, '>', $filename
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $filename or die "can't open $filename ($!).\n" 0 0 0
353 or die "can't open $filename ($!).\n";
354
355 0 $self->_format_head_main($filename);
356 0 $self->_format_decl_file($node, \@list_decl, $_);
357 0 $self->_format_tail(0);
358
359 0 close OUT;
360 }
361
362 0 foreach (@list_call) {
363 0 my $idx = 'index_' . $_;
364 0 $self->_examine_index($node, $idx, $main::global->{$idx});
365 }
366 0 my $nb = 0;
367 0 foreach (@list_call) {
368 0 my $idx = 'index_' . $_;
369 0 foreach (sort keys %{$main::global->{$idx}}) {
370 0 $nb ++;
371 }
372 }
373 0 ▶ if ($nb) {
Branch: 1 branch
BranchTrueFalseTotal
if ($nb) 0 0 0
374 0 ▶ open OUT, '>', 'index.html'
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", "index.html" or die "can't open index.html ($!).\n" 0 0 0
375 or die "can't open index.html ($!).\n";
376 0 $self->{out} = \*OUT;
377
378 0 $self->_format_head_global_index();
379 0 foreach (@list_call) {
380 0 my $idx = 'index_' . $_;
381 0 ▶ if (keys %{$main::global->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %{$$main::global{$idx};}) 0 0 0
382 0 my $title = ucfirst $_;
383 0 print OUT "<h2>All ",$title," index.</h2>\n";
384 0 $self->_format_global_index($idx, $main::global->{$idx}, q{});
385 }
386 }
387 0 ▶ unless ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"frameset"}) 0 0 0
388 0 $self->_sep_line();
389 0 print OUT " <div><cite>Generated by idl2html</cite></div>\n";
390 }
391 0 $self->_format_tail(0);
392
393 0 close OUT;
394 }
395
396 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'frameset'}) { } 0 0 0
397 0 ▶ open OUT, '>', 'frame.html'
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", "frame.html" or die "can't open frame.html ($!).\n" 0 0 0
398 or die "can't open frame.html ($!).\n";
399 0 $self->{out} = \*OUT;
400
401 0 $self->_format_head('Global index', 1);
402 0 print OUT " <frameset cols='25%,75%'>\n";
403 0 print OUT " <frameset rows='40%,60%'>\n";
404 0 print OUT " <frame src='index.html' id='global' name='global'/>\n";
405 0 print OUT " <frame src='index._",$self->{first_filename},"' id='local' name='local'/>\n";
406 0 print OUT " </frameset>\n";
407 0 print OUT " <frame src='_",$self->{first_filename},"#__Top__' id='main' name='main'/>\n";
408 0 print OUT " <noframes>\n";
409 0 print OUT " <body>\n";
410 0 print OUT " <h1>Sorry!</h1>\n";
411 0 print OUT " <h3>This page must be viewed by a browser that is capable of viewing frames.</h3>\n";
412 0 print OUT " </body>\n";
413 0 print OUT " </noframes>\n";
414 0 print OUT " </frameset>\n";
415 0 $self->_format_tail(1);
416
417 0 close OUT;
418 }
419 else {
420 0 ▶ my $outfile = $self->{parser}->YYData->{opt_o} || 'htmlhelp';
Condition0%0/2
$self->{'parser'}->YYData->{'opt_o'} || 'htmlhelp'
l!l
00
MC/DC0%0/1
$self->{'parser'}->YYData->{'opt_o'} || 'htmlhelp'
$self->{'parser'}->YYData->{'opt_o'}
Truth table0%0/2
A
A= $self->{'parser'}->YYData->{'opt_o'}
Aresult
11
00
421 0 ▶ open OUT, '>', "$outfile.hhp"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", "$outfile.hhp" or die "can't open $outfile.hhp ($!).\n" 0 0 0
422 or die "can't open $outfile.hhp ($!).\n";
423
424 0 my $title = $self->{parser}->YYData->{opt_t};
425 0 print OUT "[OPTIONS]\n";
426 0 print OUT "Binary TOC=Yes\n";
427 0 print OUT "Compatibility=1.1 or later\n";
428 0 print OUT "Compiled file=",$outfile,".chm\n";
429 0 print OUT "Contents file=toc.hhc\n";
430 0 print OUT "Default Window=Main\n";
431 0 print OUT "Default topic=index.html\n";
432 0 print OUT "Display compile progress=Yes\n";
433 0 print OUT "Full-text search=Yes\n";
434 0 print OUT "Index file=index.hhk\n";
435 0 print OUT "Language=0x0409 English (UNITED STATES)\n";
436 0 ▶ print OUT "Title=",$title,"\n" if ($title);
Branch: 1 branch
BranchTrueFalseTotal
if $title 0 0 0
437 0 print OUT "\n";
438 0 print OUT "[WINDOWS]\n";
439 0 print OUT "Main=,\"toc.hhc\",\"index.hhk\",\"index.html\",\"index.html\",,,,,0x22520,,0x603006,,,,,,,,0\n";
440 0 print OUT "\n";
441 0 print OUT "[FILES]\n";
442 0 print OUT "index.html\n";
443 0 foreach (@list_call) {
444 0 my $idx = 'index_' . $_;
445 0 foreach (sort keys %{$main::global->{$idx}}) {
446 print OUT "_",$_,".html\n"
447 0 ▶ if ($main::global->{$idx}->{$_} == 1 or $idx eq 'index_module');
Branch: 1 branch
BranchTrueFalseTotal
if $main::global->{$idx}{$_} == 1 or $idx eq "index_module" 0 0 0
Condition0%0/3
$main::global->{$idx}{$_} == 1 or $idx eq "index_module"
l!l&&r!l&&!r
000
MC/DC0%0/2
$main::global->{$idx}{$_} == 1 or $idx eq "index_module"
$main::global->{$idx}{$_} == 1 $idx eq "index_module"
Truth table0%0/3
A or B
A= $main::global->{$idx}{$_} == 1B= $idx eq "index_module"
ABresult
1X1
011
000
448 }
449 }
450
451 0 close OUT;
452
453 0 ▶ open OUT, '>', 'toc.hhc'
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", "toc.hhc" or die "can't open toc.hhc ($!).\n" 0 0 0
454 or die "can't open toc.hhc ($!).\n";
455
456 0 print OUT "<HTML>\n"; # no XHTML
457 0 print OUT " <HEAD>\n";
458 0 print OUT " <meta name=\"generator\" content=\"idl2html ",$CORBA::HTML::VERSION," (Perl ",$],")\">\n";
459 0 print OUT " </HEAD>\n";
460 0 print OUT " <BODY>\n";
461 0 print OUT " <OBJECT type=\"text/site properties\">\n";
462 0 print OUT " <param name=\"ImageType\" value=\"Folder\">\n";
463 0 print OUT " </OBJECT>\n";
464 0 print OUT " <UL>\n";
465 0 foreach (@list_call) {
466 0 my $idx = 'index_' . $_;
467 0 ▶ if (keys %{$main::global->{$idx}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %{$$main::global{$idx};}) 0 0 0
468 0 my $title = ucfirst $_;
469 0 print OUT " <LI> <OBJECT type=\"text/sitemap\">\n";
470 0 print OUT " <param name=\"Name\" value=\"",$title,"\">\n";
471 0 print OUT " <param name=\"ImageNumber\" value=\"1\">\n";
472 0 print OUT " </OBJECT>\n";
473 0 $self->_format_toc($idx, $main::global->{$idx}, q{});
474 }
475 }
476 0 print OUT " </UL>\n";
477 0 print OUT " </BODY>\n";
478 0 print OUT "</HTML>\n";
479
480 0 close OUT;
481
482 0 foreach my $scope (values %{$self->{symbtab}->{scopes}}) {
483 0 foreach my $defn (values %{$scope->{entry}}) {
484 0 ▶ next unless (exists $defn->{file_html});
Branch: 1 branch
BranchTrueFalseTotal
unless exists $defn->{"file_html"} 0 0 0
485 0 ▶ if ( $defn->isa('StateMember')
Branch: 1 branch
BranchTrueFalseTotal
if ($defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits") or $defn->isa("Publishes") or $defn->isa("Consumes") or $defn->isa("Factory") or $defn->isa("Finder")) 0 0 0
Condition0%0/48
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits") or $defn->isa("Publishes") or $defn->isa("Consumes") or $defn->isa("Factory") or $defn->isa("Finder")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits") or $defn->isa("Publishes") or $defn->isa("Consumes") or $defn->isa("Factory")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits") or $defn->isa("Publishes") or $defn->isa("Consumes")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits") or $defn->isa("Publishes")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue")
l!l&&r!l&&!r
000
$defn->isa("StateMember") or $defn->isa("Initializer")
l!l&&r!l&&!r
000
MC/DC0%0/17
$defn->isa("StateMember") or $defn->isa("Initializer") or $defn->isa("BoxedValue") or $defn->isa("Constant") or $defn->isa("TypeDeclarator") or $defn->isa("StructType") or $defn->isa("UnionType") or $defn->isa("EnumType") or $defn->isa("Enum") or $defn->isa("Exception") or $defn->isa("Provides") or $defn->isa("Uses") or $defn->isa("Emits") or $defn->isa("Publishes") or $defn->isa("Consumes") or $defn->isa("Factory") or $defn->isa("Finder")
too many conditions
486 or $defn->isa('Initializer')
487 or $defn->isa('BoxedValue')
488 or $defn->isa('Constant')
489 or $defn->isa('TypeDeclarator')
490 or $defn->isa('StructType')
491 or $defn->isa('UnionType')
492 or $defn->isa('EnumType')
493 or $defn->isa('Enum')
494 or $defn->isa('Exception')
495 or $defn->isa('Provides')
496 or $defn->isa('Uses')
497 or $defn->isa('Emits')
498 or $defn->isa('Publishes')
499 or $defn->isa('Consumes')
500 or $defn->isa('Factory')
501 or $defn->isa('Finder') ) {
502 0 my $anchor = $defn->{file_html} . "#" . $defn->{idf};
503 0 $main::global->{index_entry}->{$anchor} = $defn->{idf};
504 }
505 }
506 }
507
508 0 ▶ open OUT, '>', 'index.hhk'
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", "index.hhk" or die "can't open index.hhk ($!).\n" 0 0 0
509 or die "can't open index.hhk ($!).\n";
510
511 0 print OUT "<HTML>\n"; # no XHTML
512 0 print OUT " <HEAD>\n";
513 0 print OUT " <meta name=\"generator\" content=\"idl2html ",$CORBA::HTML::VERSION," (Perl ",$],")\">\n";
514 0 print OUT " </HEAD>\n";
515 0 print OUT " <BODY>\n";
516 0 print OUT " <UL>\n";
517 0 ▶ while (my ($key, $val) = each %{$main::global->{index_entry}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{$$main::global{"index_entry"};}) 0 0 0
518 0 print OUT " <LI> <OBJECT type=\"text/sitemap\">\n";
519 0 print OUT " <param name=\"Name\" value=\"",$val,"\">\n";
520 0 print OUT " <param name=\"Local\" value=\"",$key,"\">\n";
521 0 print OUT " </OBJECT>\n";
522 }
523 0 print OUT " </UL>\n";
524 0 print OUT " </BODY>\n";
525 0 print OUT "</HTML>\n";
526
527 0 close OUT;
528 }
529 0 ▶ if ($self->{css}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"css"}) 0 0 0
530 0 my $outfile = $self->{css} . '.css';
531 0 ▶ unless ( -e $outfile) {
Branch: 1 branch
BranchTrueFalseTotal
unless (-e $outfile) 0 0 0
532 0 ▶ open OUT, '>', $outfile
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $outfile or die "can't open $outfile ($!)\n" 0 0 0
533 or die "can't open $outfile ($!)\n";
534 0 print OUT $self->{style};
535 0 close OUT;
536 }
537 }
538 }
539
540 #
541 # 3.7 Module Declaration
542 #
543
544 0 ▶sub visitModules {
Subroutine visitModules: not called CC=8 SCAR=42.8
Pod undocumented
545 0 my $self = shift;
546 0 my ($node) = @_;
547 0 my $scope_save = $self->{scope};
548 0 $self->{scope} = $node->{full};
549 0 $self->{scope} =~ s/^:://;
550 0 my $title = $self->{scope};
551 0 my @list_call = (
552 'module',
553 'interface',
554 'value',
555 'event',
556 'component',
557 'home'
558 );
559 0 my @list_idx = (
560 'module',
561 'interface',
562 'value',
563 'type',
564 'exception',
565 'constant',
566 'event',
567 'component',
568 'home'
569 );
570 0 my @list_decl = (
571 'boxed_value',
572 'type',
573 'exception',
574 'constant'
575 );
576
577 0 foreach (@list_call) {
578 0 my $idx = 'index_' . $_;
579 0 foreach (values %{$node->{$idx}}) {
580 0 $_->visit($self);
581 }
582 }
583
584 0 foreach (keys %{$node->{index_boxed_value}}) {
585 0 $node->{index_value}->{$_} = $node->{index_boxed_value}->{$_};
586 }
587
588 open OUT, '>', $node->{file_html}
589 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
590
591 0 $self->_format_head_main('Module ' . $title);
592 0 $self->_print_decl($node);
593 0 $self->_print_comment($node);
594 0 $self->_sep_line();
595 $self->_format_index($node, \@list_idx)
596 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
597 0 $self->_format_decl($node, \@list_decl);
598 0 $self->_format_tail(0);
599
600 0 close OUT;
601
602 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
603 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
604 or die "can't open index.$node->{file_html} ($!).\n";
605
606 0 $self->_format_head_index($title);
607 0 $self->_format_index($node, \@list_idx);
608 0 $self->_format_tail(0);
609
610 0 close OUT;
611 }
612
613 0 $self->{scope} = $scope_save;
614 }
615
616 #
617 # 3.8 Interface Declaration
618 #
619
620 0 ▶sub visitRegularInterface {
Subroutine visitRegularInterface: not called CC=5 SCAR=34.0
Pod undocumented
621 0 my $self = shift;
622 0 my ($node) = @_;
623 0 my $scope_save = $self->{scope};
624 0 $self->{scope} = $node->{full};
625 0 $self->{scope} =~ s/^:://;
626 0 my $title = $self->{scope};
627 0 my @list = (
628 'operation',
629 'attribute',
630 'type',
631 'exception',
632 'constant'
633 );
634 open OUT, '>', $node->{file_html}
635 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
636
637 0 $self->_format_head_main('Interface ' . $title);
638 0 $self->_print_decl($node);
639 0 $self->_print_comment($node);
640 0 $self->_sep_line();
641 $self->_format_index($node, \@list)
642 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
643 0 $self->_format_decl($node, \@list);
644 0 $self->_format_tail(0);
645
646 0 close OUT;
647
648 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
649 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
650 or die "can't open index.$node->{file_html} ($!).\n";
651
652 0 $self->_format_head_index($title);
653 0 $self->_format_index($node, \@list);
654 0 $self->_format_tail(0);
655
656 0 close OUT;
657 }
658
659 0 $self->{scope} = $scope_save;
660 }
661
662 0 ▶sub visitAbstractInterface {
Subroutine visitAbstractInterface: not called CC=5 SCAR=34.0
Pod undocumented
663 0 my $self = shift;
664 0 my ($node) = @_;
665 0 my $scope_save = $self->{scope};
666 0 $self->{scope} = $node->{full};
667 0 $self->{scope} =~ s/^:://;
668 0 my $title = $self->{scope};
669 0 my @list = (
670 'operation',
671 'attribute',
672 'type',
673 'exception',
674 'constant'
675 );
676 open OUT, '>', $node->{file_html}
677 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
678
679 0 $self->_format_head_main('Abstract Interface ' . $title);
680 0 $self->_print_decl($node);
681 0 $self->_print_comment($node);
682 0 $self->_sep_line();
683 $self->_format_index($node, \@list)
684 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
685 0 $self->_format_decl($node, \@list);
686 0 $self->_format_tail(0);
687
688 0 close OUT;
689
690 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
691 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
692 or die "can't open index.$node->{file_html} ($!).\n";
693
694 0 $self->_format_head_index($title);
695 0 $self->_format_index($node, \@list);
696 0 $self->_format_tail(0);
697
698 0 close OUT;
699 }
700
701 0 $self->{scope} = $scope_save;
702 }
703
704 0 ▶sub visitLocalInterface {
Subroutine visitLocalInterface: not called CC=5 SCAR=34.0
Pod undocumented
705 0 my $self = shift;
706 0 my ($node) = @_;
707 0 my $scope_save = $self->{scope};
708 0 $self->{scope} = $node->{full};
709 0 $self->{scope} =~ s/^:://;
710 0 my $title = $self->{scope};
711 0 my @list = (
712 'operation',
713 'attribute',
714 'type',
715 'exception',
716 'constant'
717 );
718 open OUT, '>', $node->{file_html}
719 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
720
721 0 $self->_format_head_main('Local Interface ' . $title);
722 0 $self->_print_decl($node);
723 0 $self->_print_comment($node);
724 0 $self->_sep_line();
725 $self->_format_index($node, \@list)
726 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
727 0 $self->_format_decl($node, \@list);
728 0 $self->_format_tail(0);
729
730 0 close OUT;
731
732 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
733 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
734 or die "can't open index.$node->{file_html} ($!).\n";
735
736 0 $self->_format_head_index($title);
737 0 $self->_format_index($node, \@list);
738 0 $self->_format_tail(0);
739
740 0 close OUT;
741 }
742
743 0 $self->{scope} = $scope_save;
744 }
745
746 #
747 # 3.9 Value Declaration
748 #
749
750 0 ▶sub visitRegularValue {
Subroutine visitRegularValue: not called CC=5 SCAR=34.0
Pod undocumented
751 0 my $self = shift;
752 0 my ($node) = @_;
753 0 $self->{scope} = $node->{full};
754 0 $self->{scope} =~ s/^:://;
755 0 my $title = $self->{scope};
756 0 my @list = (
757 'operation',
758 'attribute',
759 'type',
760 'exception',
761 'constant',
762 'state_member',
763 'initializer'
764 );
765 open OUT, '>', $node->{file_html}
766 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
767
768 0 $self->_format_head_main('Value Type ' . $title);
769 0 $self->_print_decl($node);
770 0 $self->_print_comment($node);
771 0 $self->_sep_line();
772 $self->_format_index($node, \@list)
773 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
774 0 $self->_format_decl($node, \@list);
775 0 $self->_format_tail(0);
776
777 0 close OUT;
778
779 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
780 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
781 or die "can't open index.$node->{file_html} ($!).\n";
782
783 0 $self->_format_head_index($title);
784 0 $self->_format_index($node, \@list);
785 0 $self->_format_tail(0);
786
787 0 close OUT;
788 }
789 }
790
791 0 ▶sub visitAbstractValue {
Subroutine visitAbstractValue: not called CC=5 SCAR=34.0
Pod undocumented
792 0 my $self = shift;
793 0 my ($node) = @_;
794 0 $self->{scope} = $node->{full};
795 0 $self->{scope} =~ s/^:://;
796 0 my $title = $self->{scope};
797 0 my @list = (
798 'operation',
799 'attribute',
800 'type',
801 'exception',
802 'constant'
803 );
804 open OUT, '>', $node->{file_html}
805 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
806
807 0 $self->_format_head_main('Abstract Value Type ' . $title);
808 0 $self->_print_decl($node);
809 0 $self->_print_comment($node);
810 0 $self->_sep_line();
811 $self->_format_index($node, \@list)
812 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
813 0 $self->_format_decl($node, \@list);
814 0 $self->_format_tail(0);
815
816 0 close OUT;
817
818 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
819 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
820 or die "can't open index.$node->{file_html} ($!).\n";
821
822 0 $self->_format_head_index($title);
823 0 $self->_format_index($node, \@list);
824 0 $self->_format_tail(0);
825
826 0 close OUT;
827 }
828 }
829
830 #
831 # 3.16 Event Declaration
832 #
833
834 0 ▶sub visitRegularEvent {
Subroutine visitRegularEvent: not called CC=5 SCAR=34.0
Pod undocumented
835 0 my $self = shift;
836 0 my ($node) = @_;
837 0 $self->{scope} = $node->{full};
838 0 $self->{scope} =~ s/^:://;
839 0 my $title = $self->{scope};
840 0 my @list = (
841 'operation',
842 'attribute',
843 'type',
844 'exception',
845 'constant',
846 'state_member',
847 'initializer'
848 );
849 open OUT, '>', $node->{file_html}
850 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
851
852 0 $self->_format_head_main('Event Type ' . $title);
853 0 $self->_print_decl($node);
854 0 $self->_print_comment($node);
855 0 $self->_sep_line();
856 $self->_format_index($node, \@list)
857 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
858 0 $self->_format_decl($node, \@list);
859 0 $self->_format_tail(0);
860
861 0 close OUT;
862
863 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
864 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
865 or die "can't open index.$node->{file_html} ($!).\n";
866
867 0 $self->_format_head_index($title);
868 0 $self->_format_index($node, \@list);
869 0 $self->_format_tail(0);
870
871 0 close OUT;
872 }
873 }
874
875 0 ▶sub visitAbstractEvent {
Subroutine visitAbstractEvent: not called CC=5 SCAR=34.0
Pod undocumented
876 0 my $self = shift;
877 0 my ($node) = @_;
878 0 $self->{scope} = $node->{full};
879 0 $self->{scope} =~ s/^:://;
880 0 my $title = $self->{scope};
881 0 my @list = (
882 'operation',
883 'attribute',
884 'type',
885 'exception',
886 'constant'
887 );
888 open OUT, '>', $node->{file_html}
889 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
890
891 0 $self->_format_head_main('Abstract Event Type ' . $title);
892 0 $self->_print_decl($node);
893 0 $self->_print_comment($node);
894 0 $self->_sep_line();
895 $self->_format_index($node, \@list)
896 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
897 0 $self->_format_decl($node, \@list);
898 0 $self->_format_tail(0);
899
900 0 close OUT;
901
902 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
903 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
904 or die "can't open index.$node->{file_html} ($!).\n";
905
906 0 $self->_format_head_index($title);
907 0 $self->_format_index($node, \@list);
908 0 $self->_format_tail(0);
909
910 0 close OUT;
911 }
912 }
913
914 #
915 # 3.17 Component Declaration
916 #
917
918 0 ▶sub visitComponent {
Subroutine visitComponent: not called CC=5 SCAR=34.0
Pod undocumented
919 0 my $self = shift;
920 0 my ($node) = @_;
921 0 $self->{scope} = $node->{full};
922 0 $self->{scope} =~ s/^:://;
923 0 my $title = $self->{scope};
924 0 my @list = (
925 'provides',
926 'uses',
927 'publishes',
928 'consumes',
929 'attribute'
930 );
931 open OUT, '>', $node->{file_html}
932 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
933
934 0 $self->_format_head_main('Component ' . $title);
935 0 $self->_print_decl($node);
936 0 $self->_print_comment($node);
937 0 $self->_sep_line();
938 $self->_format_index($node, \@list)
939 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
940 0 $self->_format_decl($node, \@list);
941 0 $self->_format_tail(0);
942
943 0 close OUT;
944
945 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
946 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
947 or die "can't open index.$node->{file_html} ($!).\n";
948
949 0 $self->_format_head_index($title);
950 0 $self->_format_index($node, \@list);
951 0 $self->_format_tail(0);
952
953 0 close OUT;
954 }
955 }
956
957 #
958 # 3.18 Home Declaration
959 #
960
961 0 ▶sub visitHome {
Subroutine visitHome: not called CC=5 SCAR=34.0
Pod undocumented
962 0 my $self = shift;
963 0 my ($node) = @_;
964 0 $self->{scope} = $node->{full};
965 0 $self->{scope} =~ s/^:://;
966 0 my $title = $self->{scope};
967 0 my @list = (
968 'operation',
969 'attribute',
970 'type',
971 'exception',
972 'constant',
973 'factory',
974 'finder'
975 );
976 open OUT, '>', $node->{file_html}
977 0 ▶ or die "can't open $node->{file_html} ($!).\n";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $node->{"file_html"} or die qq[can't open $node->{"file_html"} ($!).\n] 0 0 0
978
979 0 $self->_format_head_main('Home ' . $title);
980 0 $self->_print_decl($node);
981 0 $self->_print_comment($node);
982 0 $self->_sep_line();
983 $self->_format_index($node, \@list)
984 0 ▶ unless ($self->{frameset});
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"frameset"} 0 0 0
985 0 $self->_format_decl($node, \@list);
986 0 $self->_format_tail(0);
987
988 0 close OUT;
989
990 0 ▶ if ($self->{frameset}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"frameset"}) 0 0 0
991 0 ▶ open OUT, '>', "index.$node->{file_html}"
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", qq[index.$node->{"file_html"}] or die qq[can't open index.$node->{"file_html"} ($!).\n] 0 0 0
992 or die "can't open index.$node->{file_html} ($!).\n";
993
994 0 $self->_format_head_index($title);
995 0 $self->_format_index($node, \@list);
996 0 $self->_format_tail(0);
997
998 0 close OUT;
999 }
1000 }
1001
1002 1 1;
1003
↑ Summary HTML/IndexVisitor.pm »