| 1 | # Copyright (c) 2005 - 2006 Hans Jeuken. All rights reserved. | ||||||||||||||||||||
| 2 | # This program is free software; you can redistribute it and/or | ||||||||||||||||||||
| 3 | # modify it under the same terms as Perl itself. | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | # This file was generated from the 'javadoc.xml' file of the syntax highlight | ||||||||||||||||||||
| 6 | # engine of the kate text editor (http://www.kate-editor.org | ||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | #kate xml version 1.03 | ||||||||||||||||||||
| 9 | #kate version 2.4 | ||||||||||||||||||||
| 10 | #kate author Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br) | ||||||||||||||||||||
| 11 | #generated: Sun Feb 3 22:02:05 2008, localtime | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | package Syntax::Highlight::Engine::Kate::Javadoc; | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 1 | our $VERSION = '0.14'; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 18 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 19 | 1 | ▶ | use base('Syntax::Highlight::Engine::Kate::Template'); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | sub new { | ||||||||||||||||||||
| 22 | 3 | ▶ | my $proto = shift; | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||||||||||
| 23 | 3 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 24 | 3 | my $self = $class->SUPER::new(@_); | |||||||||||||||||||
| 25 | 3 | $self->attributes({ | |||||||||||||||||||
| 26 | 'BlockTag' => 'Keyword', | ||||||||||||||||||||
| 27 | 'InlineTag' => 'Keyword', | ||||||||||||||||||||
| 28 | 'Javadoc' => 'Comment', | ||||||||||||||||||||
| 29 | 'JavadocFS' => 'Comment', | ||||||||||||||||||||
| 30 | 'JavadocParam' => 'Keyword', | ||||||||||||||||||||
| 31 | 'Normal Text' => 'Normal', | ||||||||||||||||||||
| 32 | 'SeeTag' => 'Keyword', | ||||||||||||||||||||
| 33 | }); | ||||||||||||||||||||
| 34 | 3 | $self->contextdata({ | |||||||||||||||||||
| 35 | 'FindJavadoc' => { | ||||||||||||||||||||
| 36 | callback => \&parseFindJavadoc, | ||||||||||||||||||||
| 37 | attribute => 'Normal Text', | ||||||||||||||||||||
| 38 | }, | ||||||||||||||||||||
| 39 | 'InlineTagar' => { | ||||||||||||||||||||
| 40 | callback => \&parseInlineTagar, | ||||||||||||||||||||
| 41 | attribute => 'InlineTag', | ||||||||||||||||||||
| 42 | lineending => '#pop', | ||||||||||||||||||||
| 43 | }, | ||||||||||||||||||||
| 44 | 'JavadocFSar' => { | ||||||||||||||||||||
| 45 | callback => \&parseJavadocFSar, | ||||||||||||||||||||
| 46 | attribute => 'JavadocFS', | ||||||||||||||||||||
| 47 | }, | ||||||||||||||||||||
| 48 | 'JavadocParam' => { | ||||||||||||||||||||
| 49 | callback => \&parseJavadocParam, | ||||||||||||||||||||
| 50 | attribute => 'Javadoc', | ||||||||||||||||||||
| 51 | lineending => '#pop', | ||||||||||||||||||||
| 52 | }, | ||||||||||||||||||||
| 53 | 'Javadocar' => { | ||||||||||||||||||||
| 54 | callback => \&parseJavadocar, | ||||||||||||||||||||
| 55 | attribute => 'Javadoc', | ||||||||||||||||||||
| 56 | }, | ||||||||||||||||||||
| 57 | 'LiteralTagar' => { | ||||||||||||||||||||
| 58 | callback => \&parseLiteralTagar, | ||||||||||||||||||||
| 59 | attribute => 'InlineTag', | ||||||||||||||||||||
| 60 | lineending => '#pop', | ||||||||||||||||||||
| 61 | }, | ||||||||||||||||||||
| 62 | 'SeeTag' => { | ||||||||||||||||||||
| 63 | callback => \&parseSeeTag, | ||||||||||||||||||||
| 64 | attribute => 'SeeTag', | ||||||||||||||||||||
| 65 | lineending => '#pop', | ||||||||||||||||||||
| 66 | }, | ||||||||||||||||||||
| 67 | 'Start' => { | ||||||||||||||||||||
| 68 | callback => \&parseStart, | ||||||||||||||||||||
| 69 | attribute => 'Normal Text', | ||||||||||||||||||||
| 70 | }, | ||||||||||||||||||||
| 71 | }); | ||||||||||||||||||||
| 72 | 3 | $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\'); | |||||||||||||||||||
| 73 | 3 | $self->basecontext('Start'); | |||||||||||||||||||
| 74 | 3 | $self->keywordscase(0); | |||||||||||||||||||
| 75 | 3 | $self->initialize; | |||||||||||||||||||
| 76 | 3 | bless ($self, $class); | |||||||||||||||||||
| 77 | 3 | return $self; | |||||||||||||||||||
| 78 | } | ||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | sub language { | ||||||||||||||||||||
| 81 | 0 | ▶ | return 'Javadoc'; | ||||||||||||||||||
|
Subroutine
language: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 82 | } | ||||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | sub parseFindJavadoc { | ||||||||||||||||||||
| 85 | 2872 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseFindJavadoc: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 86 | # String => '/**' | ||||||||||||||||||||
| 87 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 88 | # beginRegion => 'Javadoc' | ||||||||||||||||||||
| 89 | # context => 'JavadocFSar' | ||||||||||||||||||||
| 90 | # type => 'StringDetect' | ||||||||||||||||||||
| 91 | 2872 | ▶ | if ($self->testStringDetect($text, '/**', 0, 0, 0, undef, 0, 'JavadocFSar', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 92 | 8 | return 1 | |||||||||||||||||||
| 93 | } | ||||||||||||||||||||
| 94 | 2864 | return 0; | |||||||||||||||||||
| 95 | }; | ||||||||||||||||||||
| 96 | |||||||||||||||||||||
| 97 | sub parseInlineTagar { | ||||||||||||||||||||
| 98 | 0 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseInlineTagar: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||
| 99 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 100 | # char => '}' | ||||||||||||||||||||
| 101 | # context => '#pop' | ||||||||||||||||||||
| 102 | # type => 'DetectChar' | ||||||||||||||||||||
| 103 | 0 | ▶ | if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 104 | 0 | return 1 | |||||||||||||||||||
| 105 | } | ||||||||||||||||||||
| 106 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 107 | # char => '*' | ||||||||||||||||||||
| 108 | # char1 => '/' | ||||||||||||||||||||
| 109 | # context => '#pop#pop#pop' | ||||||||||||||||||||
| 110 | # type => 'Detect2Chars' | ||||||||||||||||||||
| 111 | 0 | ▶ | if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop#pop#pop', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 112 | 0 | return 1 | |||||||||||||||||||
| 113 | } | ||||||||||||||||||||
| 114 | # context => '##HTML' | ||||||||||||||||||||
| 115 | # type => 'IncludeRules' | ||||||||||||||||||||
| 116 | 0 | ▶ | if ($self->includePlugin('HTML', $text)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 117 | 0 | return 1 | |||||||||||||||||||
| 118 | } | ||||||||||||||||||||
| 119 | 0 | return 0; | |||||||||||||||||||
| 120 | }; | ||||||||||||||||||||
| 121 | |||||||||||||||||||||
| 122 | sub parseJavadocFSar { | ||||||||||||||||||||
| 123 | 186 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseJavadocFSar: called CC=20 SCAR=38.6
Pod
undocumented
| |||||||||||||||||||||
| 124 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 125 | # char => '*' | ||||||||||||||||||||
| 126 | # char1 => '/' | ||||||||||||||||||||
| 127 | # context => '#pop' | ||||||||||||||||||||
| 128 | # endRegion => 'Javadoc' | ||||||||||||||||||||
| 129 | # type => 'Detect2Chars' | ||||||||||||||||||||
| 130 | 186 | ▶ | if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 131 | 0 | return 1 | |||||||||||||||||||
| 132 | } | ||||||||||||||||||||
| 133 | # String => '(!|\?)' | ||||||||||||||||||||
| 134 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 135 | # context => 'Javadocar' | ||||||||||||||||||||
| 136 | # type => 'RegExpr' | ||||||||||||||||||||
| 137 | 186 | ▶ | if ($self->testRegExpr($text, '(!|\\?)', 0, 0, 0, undef, 0, 'Javadocar', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 138 | 0 | return 1 | |||||||||||||||||||
| 139 | } | ||||||||||||||||||||
| 140 | # String => '(\.\s*$)' | ||||||||||||||||||||
| 141 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 142 | # context => 'Javadocar' | ||||||||||||||||||||
| 143 | # type => 'RegExpr' | ||||||||||||||||||||
| 144 | 186 | ▶ | if ($self->testRegExpr($text, '(\\.\\s*$)', 0, 0, 0, undef, 0, 'Javadocar', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 145 | 0 | return 1 | |||||||||||||||||||
| 146 | } | ||||||||||||||||||||
| 147 | # String => '(\.\s)(?![\da-z])' | ||||||||||||||||||||
| 148 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 149 | # context => 'Javadocar' | ||||||||||||||||||||
| 150 | # type => 'RegExpr' | ||||||||||||||||||||
| 151 | 186 | ▶ | if ($self->testRegExpr($text, '(\\.\\s)(?![\\da-z])', 0, 0, 0, undef, 0, 'Javadocar', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 152 | 6 | return 1 | |||||||||||||||||||
| 153 | } | ||||||||||||||||||||
| 154 | # String => '\**\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\s|$))' | ||||||||||||||||||||
| 155 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 156 | # context => 'Javadocar' | ||||||||||||||||||||
| 157 | # firstNonSpace => 'true' | ||||||||||||||||||||
| 158 | # type => 'RegExpr' | ||||||||||||||||||||
| 159 | 180 | ▶ | if ($self->testRegExpr($text, '\\**\\s*(?=@(author|deprecated|exception|param|return|see|serial|serialData|serialField|since|throws|version)(\\s|$))', 0, 0, 0, undef, 1, 'Javadocar', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 160 | 2 | return 1 | |||||||||||||||||||
| 161 | } | ||||||||||||||||||||
| 162 | # String => '{@code ' | ||||||||||||||||||||
| 163 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 164 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 165 | # type => 'StringDetect' | ||||||||||||||||||||
| 166 | 178 | ▶ | if ($self->testStringDetect($text, '{@code ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 167 | 0 | return 1 | |||||||||||||||||||
| 168 | } | ||||||||||||||||||||
| 169 | # String => '{@code ' | ||||||||||||||||||||
| 170 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 171 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 172 | # type => 'StringDetect' | ||||||||||||||||||||
| 173 | 178 | ▶ | if ($self->testStringDetect($text, '{@code ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 174 | 0 | return 1 | |||||||||||||||||||
| 175 | } | ||||||||||||||||||||
| 176 | # String => '{@docRoot}' | ||||||||||||||||||||
| 177 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 178 | # context => '#stay' | ||||||||||||||||||||
| 179 | # type => 'StringDetect' | ||||||||||||||||||||
| 180 | 178 | ▶ | if ($self->testStringDetect($text, '{@docRoot}', 0, 0, 0, undef, 0, '#stay', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 181 | 0 | return 1 | |||||||||||||||||||
| 182 | } | ||||||||||||||||||||
| 183 | # String => '{@inheritDoc}' | ||||||||||||||||||||
| 184 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 185 | # context => '#stay' | ||||||||||||||||||||
| 186 | # type => 'StringDetect' | ||||||||||||||||||||
| 187 | 178 | ▶ | if ($self->testStringDetect($text, '{@inheritDoc}', 0, 0, 0, undef, 0, '#stay', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 188 | 0 | return 1 | |||||||||||||||||||
| 189 | } | ||||||||||||||||||||
| 190 | # String => '{@link ' | ||||||||||||||||||||
| 191 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 192 | # context => 'InlineTagar' | ||||||||||||||||||||
| 193 | # type => 'StringDetect' | ||||||||||||||||||||
| 194 | 178 | ▶ | if ($self->testStringDetect($text, '{@link ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 195 | 0 | return 1 | |||||||||||||||||||
| 196 | } | ||||||||||||||||||||
| 197 | # String => '{@link ' | ||||||||||||||||||||
| 198 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 199 | # context => 'InlineTagar' | ||||||||||||||||||||
| 200 | # type => 'StringDetect' | ||||||||||||||||||||
| 201 | 178 | ▶ | if ($self->testStringDetect($text, '{@link ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 202 | 0 | return 1 | |||||||||||||||||||
| 203 | } | ||||||||||||||||||||
| 204 | # String => '{@linkplain ' | ||||||||||||||||||||
| 205 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 206 | # context => 'InlineTagar' | ||||||||||||||||||||
| 207 | # type => 'StringDetect' | ||||||||||||||||||||
| 208 | 178 | ▶ | if ($self->testStringDetect($text, '{@linkplain ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 209 | 0 | return 1 | |||||||||||||||||||
| 210 | } | ||||||||||||||||||||
| 211 | # String => '{@linkplain ' | ||||||||||||||||||||
| 212 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 213 | # context => 'InlineTagar' | ||||||||||||||||||||
| 214 | # type => 'StringDetect' | ||||||||||||||||||||
| 215 | 178 | ▶ | if ($self->testStringDetect($text, '{@linkplain ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 216 | 0 | return 1 | |||||||||||||||||||
| 217 | } | ||||||||||||||||||||
| 218 | # String => '{@literal ' | ||||||||||||||||||||
| 219 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 220 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 221 | # type => 'StringDetect' | ||||||||||||||||||||
| 222 | 178 | ▶ | if ($self->testStringDetect($text, '{@literal ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 223 | 0 | return 1 | |||||||||||||||||||
| 224 | } | ||||||||||||||||||||
| 225 | # String => '{@literal ' | ||||||||||||||||||||
| 226 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 227 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 228 | # type => 'StringDetect' | ||||||||||||||||||||
| 229 | 178 | ▶ | if ($self->testStringDetect($text, '{@literal ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 230 | 0 | return 1 | |||||||||||||||||||
| 231 | } | ||||||||||||||||||||
| 232 | # String => '{@value}' | ||||||||||||||||||||
| 233 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 234 | # context => '#stay' | ||||||||||||||||||||
| 235 | # type => 'StringDetect' | ||||||||||||||||||||
| 236 | 178 | ▶ | if ($self->testStringDetect($text, '{@value}', 0, 0, 0, undef, 0, '#stay', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 237 | 0 | return 1 | |||||||||||||||||||
| 238 | } | ||||||||||||||||||||
| 239 | # String => '{@value ' | ||||||||||||||||||||
| 240 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 241 | # context => 'InlineTagar' | ||||||||||||||||||||
| 242 | # type => 'StringDetect' | ||||||||||||||||||||
| 243 | 178 | ▶ | if ($self->testStringDetect($text, '{@value ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 244 | 0 | return 1 | |||||||||||||||||||
| 245 | } | ||||||||||||||||||||
| 246 | # String => '{@value ' | ||||||||||||||||||||
| 247 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 248 | # context => 'InlineTagar' | ||||||||||||||||||||
| 249 | # type => 'StringDetect' | ||||||||||||||||||||
| 250 | 178 | ▶ | if ($self->testStringDetect($text, '{@value ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 251 | 0 | return 1 | |||||||||||||||||||
| 252 | } | ||||||||||||||||||||
| 253 | # context => '##HTML' | ||||||||||||||||||||
| 254 | # type => 'IncludeRules' | ||||||||||||||||||||
| 255 | 178 | ▶ | if ($self->includePlugin('HTML', $text)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 256 | 50 | return 1 | |||||||||||||||||||
| 257 | } | ||||||||||||||||||||
| 258 | 128 | return 0; | |||||||||||||||||||
| 259 | }; | ||||||||||||||||||||
| 260 | |||||||||||||||||||||
| 261 | sub parseJavadocParam { | ||||||||||||||||||||
| 262 | 4 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseJavadocParam: called CC=4 SCAR=16.6
Pod
undocumented
| |||||||||||||||||||||
| 263 | # type => 'DetectSpaces' | ||||||||||||||||||||
| 264 | 4 | ▶ | if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 265 | 0 | return 1 | |||||||||||||||||||
| 266 | } | ||||||||||||||||||||
| 267 | # String => '\S*(?=\*/)' | ||||||||||||||||||||
| 268 | # attribute => 'JavadocParam' | ||||||||||||||||||||
| 269 | # context => '#pop#pop' | ||||||||||||||||||||
| 270 | # type => 'RegExpr' | ||||||||||||||||||||
| 271 | 4 | ▶ | if ($self->testRegExpr($text, '\\S*(?=\\*/)', 0, 0, 0, undef, 0, '#pop#pop', 'JavadocParam')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 272 | 0 | return 1 | |||||||||||||||||||
| 273 | } | ||||||||||||||||||||
| 274 | # String => '\S*(\s|$)' | ||||||||||||||||||||
| 275 | # attribute => 'JavadocParam' | ||||||||||||||||||||
| 276 | # context => '#pop' | ||||||||||||||||||||
| 277 | # type => 'RegExpr' | ||||||||||||||||||||
| 278 | 4 | ▶ | if ($self->testRegExpr($text, '\\S*(\\s|$)', 0, 0, 0, undef, 0, '#pop', 'JavadocParam')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 279 | 4 | return 1 | |||||||||||||||||||
| 280 | } | ||||||||||||||||||||
| 281 | 0 | return 0; | |||||||||||||||||||
| 282 | }; | ||||||||||||||||||||
| 283 | |||||||||||||||||||||
| 284 | sub parseJavadocar { | ||||||||||||||||||||
| 285 | 284 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseJavadocar: called CC=41 SCAR=52.4
Pod
undocumented
| |||||||||||||||||||||
| 286 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 287 | # char => '*' | ||||||||||||||||||||
| 288 | # char1 => '/' | ||||||||||||||||||||
| 289 | # context => '#pop#pop' | ||||||||||||||||||||
| 290 | # endRegion => 'Javadoc' | ||||||||||||||||||||
| 291 | # type => 'Detect2Chars' | ||||||||||||||||||||
| 292 | 284 | ▶ | if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop#pop', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 293 | 8 | return 1 | |||||||||||||||||||
| 294 | } | ||||||||||||||||||||
| 295 | # String => '\*+(?!/)' | ||||||||||||||||||||
| 296 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 297 | # context => '#stay' | ||||||||||||||||||||
| 298 | # firstNonSpace => 'true' | ||||||||||||||||||||
| 299 | # type => 'RegExpr' | ||||||||||||||||||||
| 300 | 276 | ▶ | if ($self->testRegExpr($text, '\\*+(?!/)', 0, 0, 0, undef, 1, '#stay', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 301 | 8 | return 1 | |||||||||||||||||||
| 302 | } | ||||||||||||||||||||
| 303 | # String => '@author ' | ||||||||||||||||||||
| 304 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 305 | # context => '#stay' | ||||||||||||||||||||
| 306 | # type => 'StringDetect' | ||||||||||||||||||||
| 307 | 268 | ▶ | if ($self->testStringDetect($text, '@author ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 308 | 0 | return 1 | |||||||||||||||||||
| 309 | } | ||||||||||||||||||||
| 310 | # String => '@deprecated ' | ||||||||||||||||||||
| 311 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 312 | # context => '#stay' | ||||||||||||||||||||
| 313 | # type => 'StringDetect' | ||||||||||||||||||||
| 314 | 268 | ▶ | if ($self->testStringDetect($text, '@deprecated ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 315 | 0 | return 1 | |||||||||||||||||||
| 316 | } | ||||||||||||||||||||
| 317 | # String => '@exception ' | ||||||||||||||||||||
| 318 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 319 | # context => 'JavadocParam' | ||||||||||||||||||||
| 320 | # type => 'StringDetect' | ||||||||||||||||||||
| 321 | 268 | ▶ | if ($self->testStringDetect($text, '@exception ', 0, 0, 0, undef, 0, 'JavadocParam', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 322 | 0 | return 1 | |||||||||||||||||||
| 323 | } | ||||||||||||||||||||
| 324 | # String => '@param ' | ||||||||||||||||||||
| 325 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 326 | # context => 'JavadocParam' | ||||||||||||||||||||
| 327 | # type => 'StringDetect' | ||||||||||||||||||||
| 328 | 268 | ▶ | if ($self->testStringDetect($text, '@param ', 0, 0, 0, undef, 0, 'JavadocParam', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 329 | 4 | return 1 | |||||||||||||||||||
| 330 | } | ||||||||||||||||||||
| 331 | # String => '@return ' | ||||||||||||||||||||
| 332 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 333 | # context => '#stay' | ||||||||||||||||||||
| 334 | # type => 'StringDetect' | ||||||||||||||||||||
| 335 | 264 | ▶ | if ($self->testStringDetect($text, '@return ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 336 | 0 | return 1 | |||||||||||||||||||
| 337 | } | ||||||||||||||||||||
| 338 | # String => '@see ' | ||||||||||||||||||||
| 339 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 340 | # context => 'SeeTag' | ||||||||||||||||||||
| 341 | # type => 'StringDetect' | ||||||||||||||||||||
| 342 | 264 | ▶ | if ($self->testStringDetect($text, '@see ', 0, 0, 0, undef, 0, 'SeeTag', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 343 | 0 | return 1 | |||||||||||||||||||
| 344 | } | ||||||||||||||||||||
| 345 | # String => '@serial ' | ||||||||||||||||||||
| 346 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 347 | # context => '#stay' | ||||||||||||||||||||
| 348 | # type => 'StringDetect' | ||||||||||||||||||||
| 349 | 264 | ▶ | if ($self->testStringDetect($text, '@serial ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 350 | 0 | return 1 | |||||||||||||||||||
| 351 | } | ||||||||||||||||||||
| 352 | # String => '@serialData ' | ||||||||||||||||||||
| 353 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 354 | # context => '#stay' | ||||||||||||||||||||
| 355 | # type => 'StringDetect' | ||||||||||||||||||||
| 356 | 264 | ▶ | if ($self->testStringDetect($text, '@serialData ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 357 | 0 | return 1 | |||||||||||||||||||
| 358 | } | ||||||||||||||||||||
| 359 | # String => '@serialField ' | ||||||||||||||||||||
| 360 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 361 | # context => '#stay' | ||||||||||||||||||||
| 362 | # type => 'StringDetect' | ||||||||||||||||||||
| 363 | 264 | ▶ | if ($self->testStringDetect($text, '@serialField ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 364 | 0 | return 1 | |||||||||||||||||||
| 365 | } | ||||||||||||||||||||
| 366 | # String => '@since ' | ||||||||||||||||||||
| 367 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 368 | # context => '#stay' | ||||||||||||||||||||
| 369 | # type => 'StringDetect' | ||||||||||||||||||||
| 370 | 264 | ▶ | if ($self->testStringDetect($text, '@since ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 371 | 0 | return 1 | |||||||||||||||||||
| 372 | } | ||||||||||||||||||||
| 373 | # String => '@throws ' | ||||||||||||||||||||
| 374 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 375 | # context => 'JavadocParam' | ||||||||||||||||||||
| 376 | # type => 'StringDetect' | ||||||||||||||||||||
| 377 | 264 | ▶ | if ($self->testStringDetect($text, '@throws ', 0, 0, 0, undef, 0, 'JavadocParam', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 378 | 0 | return 1 | |||||||||||||||||||
| 379 | } | ||||||||||||||||||||
| 380 | # String => '@version ' | ||||||||||||||||||||
| 381 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 382 | # context => '#stay' | ||||||||||||||||||||
| 383 | # type => 'StringDetect' | ||||||||||||||||||||
| 384 | 264 | ▶ | if ($self->testStringDetect($text, '@version ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 385 | 0 | return 1 | |||||||||||||||||||
| 386 | } | ||||||||||||||||||||
| 387 | # String => '@author ' | ||||||||||||||||||||
| 388 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 389 | # context => '#stay' | ||||||||||||||||||||
| 390 | # type => 'StringDetect' | ||||||||||||||||||||
| 391 | 264 | ▶ | if ($self->testStringDetect($text, '@author ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 392 | 0 | return 1 | |||||||||||||||||||
| 393 | } | ||||||||||||||||||||
| 394 | # String => '@deprecated ' | ||||||||||||||||||||
| 395 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 396 | # context => '#stay' | ||||||||||||||||||||
| 397 | # type => 'StringDetect' | ||||||||||||||||||||
| 398 | 264 | ▶ | if ($self->testStringDetect($text, '@deprecated ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 399 | 0 | return 1 | |||||||||||||||||||
| 400 | } | ||||||||||||||||||||
| 401 | # String => '@exception ' | ||||||||||||||||||||
| 402 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 403 | # context => 'JavadocParam' | ||||||||||||||||||||
| 404 | # type => 'StringDetect' | ||||||||||||||||||||
| 405 | 264 | ▶ | if ($self->testStringDetect($text, '@exception ', 0, 0, 0, undef, 0, 'JavadocParam', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 406 | 0 | return 1 | |||||||||||||||||||
| 407 | } | ||||||||||||||||||||
| 408 | # String => '@param ' | ||||||||||||||||||||
| 409 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 410 | # context => 'JavadocParam' | ||||||||||||||||||||
| 411 | # type => 'StringDetect' | ||||||||||||||||||||
| 412 | 264 | ▶ | if ($self->testStringDetect($text, '@param ', 0, 0, 0, undef, 0, 'JavadocParam', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 413 | 0 | return 1 | |||||||||||||||||||
| 414 | } | ||||||||||||||||||||
| 415 | # String => '@return ' | ||||||||||||||||||||
| 416 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 417 | # context => '#stay' | ||||||||||||||||||||
| 418 | # type => 'StringDetect' | ||||||||||||||||||||
| 419 | 264 | ▶ | if ($self->testStringDetect($text, '@return ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 420 | 0 | return 1 | |||||||||||||||||||
| 421 | } | ||||||||||||||||||||
| 422 | # String => '@see ' | ||||||||||||||||||||
| 423 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 424 | # context => 'SeeTag' | ||||||||||||||||||||
| 425 | # type => 'StringDetect' | ||||||||||||||||||||
| 426 | 264 | ▶ | if ($self->testStringDetect($text, '@see ', 0, 0, 0, undef, 0, 'SeeTag', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 427 | 0 | return 1 | |||||||||||||||||||
| 428 | } | ||||||||||||||||||||
| 429 | # String => '@serial ' | ||||||||||||||||||||
| 430 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 431 | # context => '#stay' | ||||||||||||||||||||
| 432 | # type => 'StringDetect' | ||||||||||||||||||||
| 433 | 264 | ▶ | if ($self->testStringDetect($text, '@serial ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 434 | 0 | return 1 | |||||||||||||||||||
| 435 | } | ||||||||||||||||||||
| 436 | # String => '@serialData ' | ||||||||||||||||||||
| 437 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 438 | # context => '#stay' | ||||||||||||||||||||
| 439 | # type => 'StringDetect' | ||||||||||||||||||||
| 440 | 264 | ▶ | if ($self->testStringDetect($text, '@serialData ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 441 | 0 | return 1 | |||||||||||||||||||
| 442 | } | ||||||||||||||||||||
| 443 | # String => '@serialField ' | ||||||||||||||||||||
| 444 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 445 | # context => '#stay' | ||||||||||||||||||||
| 446 | # type => 'StringDetect' | ||||||||||||||||||||
| 447 | 264 | ▶ | if ($self->testStringDetect($text, '@serialField ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 448 | 0 | return 1 | |||||||||||||||||||
| 449 | } | ||||||||||||||||||||
| 450 | # String => '@since ' | ||||||||||||||||||||
| 451 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 452 | # context => '#stay' | ||||||||||||||||||||
| 453 | # type => 'StringDetect' | ||||||||||||||||||||
| 454 | 264 | ▶ | if ($self->testStringDetect($text, '@since ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 455 | 0 | return 1 | |||||||||||||||||||
| 456 | } | ||||||||||||||||||||
| 457 | # String => '@throws ' | ||||||||||||||||||||
| 458 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 459 | # context => 'JavadocParam' | ||||||||||||||||||||
| 460 | # type => 'StringDetect' | ||||||||||||||||||||
| 461 | 264 | ▶ | if ($self->testStringDetect($text, '@throws ', 0, 0, 0, undef, 0, 'JavadocParam', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 462 | 0 | return 1 | |||||||||||||||||||
| 463 | } | ||||||||||||||||||||
| 464 | # String => '@version ' | ||||||||||||||||||||
| 465 | # attribute => 'BlockTag' | ||||||||||||||||||||
| 466 | # context => '#stay' | ||||||||||||||||||||
| 467 | # type => 'StringDetect' | ||||||||||||||||||||
| 468 | 264 | ▶ | if ($self->testStringDetect($text, '@version ', 0, 0, 0, undef, 0, '#stay', 'BlockTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 469 | 0 | return 1 | |||||||||||||||||||
| 470 | } | ||||||||||||||||||||
| 471 | # String => '{@code ' | ||||||||||||||||||||
| 472 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 473 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 474 | # type => 'StringDetect' | ||||||||||||||||||||
| 475 | 264 | ▶ | if ($self->testStringDetect($text, '{@code ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 476 | 0 | return 1 | |||||||||||||||||||
| 477 | } | ||||||||||||||||||||
| 478 | # String => '{@code ' | ||||||||||||||||||||
| 479 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 480 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 481 | # type => 'StringDetect' | ||||||||||||||||||||
| 482 | 264 | ▶ | if ($self->testStringDetect($text, '{@code ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 483 | 0 | return 1 | |||||||||||||||||||
| 484 | } | ||||||||||||||||||||
| 485 | # String => '{@docRoot}' | ||||||||||||||||||||
| 486 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 487 | # context => '#stay' | ||||||||||||||||||||
| 488 | # type => 'StringDetect' | ||||||||||||||||||||
| 489 | 264 | ▶ | if ($self->testStringDetect($text, '{@docRoot}', 0, 0, 0, undef, 0, '#stay', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 490 | 0 | return 1 | |||||||||||||||||||
| 491 | } | ||||||||||||||||||||
| 492 | # String => '{@inheritDoc}' | ||||||||||||||||||||
| 493 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 494 | # context => '#stay' | ||||||||||||||||||||
| 495 | # type => 'StringDetect' | ||||||||||||||||||||
| 496 | 264 | ▶ | if ($self->testStringDetect($text, '{@inheritDoc}', 0, 0, 0, undef, 0, '#stay', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 497 | 0 | return 1 | |||||||||||||||||||
| 498 | } | ||||||||||||||||||||
| 499 | # String => '{@link ' | ||||||||||||||||||||
| 500 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 501 | # context => 'InlineTagar' | ||||||||||||||||||||
| 502 | # type => 'StringDetect' | ||||||||||||||||||||
| 503 | 264 | ▶ | if ($self->testStringDetect($text, '{@link ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 504 | 0 | return 1 | |||||||||||||||||||
| 505 | } | ||||||||||||||||||||
| 506 | # String => '{@link ' | ||||||||||||||||||||
| 507 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 508 | # context => 'InlineTagar' | ||||||||||||||||||||
| 509 | # type => 'StringDetect' | ||||||||||||||||||||
| 510 | 264 | ▶ | if ($self->testStringDetect($text, '{@link ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 511 | 0 | return 1 | |||||||||||||||||||
| 512 | } | ||||||||||||||||||||
| 513 | # String => '{@linkplain ' | ||||||||||||||||||||
| 514 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 515 | # context => 'InlineTagar' | ||||||||||||||||||||
| 516 | # type => 'StringDetect' | ||||||||||||||||||||
| 517 | 264 | ▶ | if ($self->testStringDetect($text, '{@linkplain ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 518 | 0 | return 1 | |||||||||||||||||||
| 519 | } | ||||||||||||||||||||
| 520 | # String => '{@linkplain ' | ||||||||||||||||||||
| 521 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 522 | # context => 'InlineTagar' | ||||||||||||||||||||
| 523 | # type => 'StringDetect' | ||||||||||||||||||||
| 524 | 264 | ▶ | if ($self->testStringDetect($text, '{@linkplain ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 525 | 0 | return 1 | |||||||||||||||||||
| 526 | } | ||||||||||||||||||||
| 527 | # String => '{@literal ' | ||||||||||||||||||||
| 528 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 529 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 530 | # type => 'StringDetect' | ||||||||||||||||||||
| 531 | 264 | ▶ | if ($self->testStringDetect($text, '{@literal ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 532 | 0 | return 1 | |||||||||||||||||||
| 533 | } | ||||||||||||||||||||
| 534 | # String => '{@literal ' | ||||||||||||||||||||
| 535 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 536 | # context => 'LiteralTagar' | ||||||||||||||||||||
| 537 | # type => 'StringDetect' | ||||||||||||||||||||
| 538 | 264 | ▶ | if ($self->testStringDetect($text, '{@literal ', 0, 0, 0, undef, 0, 'LiteralTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 539 | 0 | return 1 | |||||||||||||||||||
| 540 | } | ||||||||||||||||||||
| 541 | # String => '{@value}' | ||||||||||||||||||||
| 542 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 543 | # context => '#stay' | ||||||||||||||||||||
| 544 | # type => 'StringDetect' | ||||||||||||||||||||
| 545 | 264 | ▶ | if ($self->testStringDetect($text, '{@value}', 0, 0, 0, undef, 0, '#stay', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 546 | 0 | return 1 | |||||||||||||||||||
| 547 | } | ||||||||||||||||||||
| 548 | # String => '{@value ' | ||||||||||||||||||||
| 549 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 550 | # context => 'InlineTagar' | ||||||||||||||||||||
| 551 | # type => 'StringDetect' | ||||||||||||||||||||
| 552 | 264 | ▶ | if ($self->testStringDetect($text, '{@value ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 553 | 0 | return 1 | |||||||||||||||||||
| 554 | } | ||||||||||||||||||||
| 555 | # String => '{@value ' | ||||||||||||||||||||
| 556 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 557 | # context => 'InlineTagar' | ||||||||||||||||||||
| 558 | # type => 'StringDetect' | ||||||||||||||||||||
| 559 | 264 | ▶ | if ($self->testStringDetect($text, '{@value ', 0, 0, 0, undef, 0, 'InlineTagar', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 560 | 0 | return 1 | |||||||||||||||||||
| 561 | } | ||||||||||||||||||||
| 562 | # context => '##HTML' | ||||||||||||||||||||
| 563 | # type => 'IncludeRules' | ||||||||||||||||||||
| 564 | 264 | ▶ | if ($self->includePlugin('HTML', $text)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 565 | 72 | return 1 | |||||||||||||||||||
| 566 | } | ||||||||||||||||||||
| 567 | 192 | return 0; | |||||||||||||||||||
| 568 | }; | ||||||||||||||||||||
| 569 | |||||||||||||||||||||
| 570 | sub parseLiteralTagar { | ||||||||||||||||||||
| 571 | 0 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseLiteralTagar: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||
| 572 | # attribute => 'InlineTag' | ||||||||||||||||||||
| 573 | # char => '}' | ||||||||||||||||||||
| 574 | # context => '#pop' | ||||||||||||||||||||
| 575 | # type => 'DetectChar' | ||||||||||||||||||||
| 576 | 0 | ▶ | if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'InlineTag')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 577 | 0 | return 1 | |||||||||||||||||||
| 578 | } | ||||||||||||||||||||
| 579 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 580 | # char => '*' | ||||||||||||||||||||
| 581 | # char1 => '/' | ||||||||||||||||||||
| 582 | # context => '#pop#pop#pop' | ||||||||||||||||||||
| 583 | # type => 'Detect2Chars' | ||||||||||||||||||||
| 584 | 0 | ▶ | if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop#pop#pop', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 585 | 0 | return 1 | |||||||||||||||||||
| 586 | } | ||||||||||||||||||||
| 587 | 0 | return 0; | |||||||||||||||||||
| 588 | }; | ||||||||||||||||||||
| 589 | |||||||||||||||||||||
| 590 | sub parseSeeTag { | ||||||||||||||||||||
| 591 | 0 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseSeeTag: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||
| 592 | # attribute => 'JavadocFS' | ||||||||||||||||||||
| 593 | # char => '*' | ||||||||||||||||||||
| 594 | # char1 => '/' | ||||||||||||||||||||
| 595 | # context => '#pop#pop#pop' | ||||||||||||||||||||
| 596 | # type => 'Detect2Chars' | ||||||||||||||||||||
| 597 | 0 | ▶ | if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop#pop#pop', 'JavadocFS')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 598 | 0 | return 1 | |||||||||||||||||||
| 599 | } | ||||||||||||||||||||
| 600 | # context => '##HTML' | ||||||||||||||||||||
| 601 | # type => 'IncludeRules' | ||||||||||||||||||||
| 602 | 0 | ▶ | if ($self->includePlugin('HTML', $text)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 603 | 0 | return 1 | |||||||||||||||||||
| 604 | } | ||||||||||||||||||||
| 605 | 0 | return 0; | |||||||||||||||||||
| 606 | }; | ||||||||||||||||||||
| 607 | |||||||||||||||||||||
| 608 | sub parseStart { | ||||||||||||||||||||
| 609 | 2872 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseStart: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 610 | # context => 'FindJavadoc' | ||||||||||||||||||||
| 611 | # type => 'IncludeRules' | ||||||||||||||||||||
| 612 | 2872 | ▶ | if ($self->includeRules('FindJavadoc', $text)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 613 | 8 | return 1 | |||||||||||||||||||
| 614 | } | ||||||||||||||||||||
| 615 | 2864 | return 0; | |||||||||||||||||||
| 616 | }; | ||||||||||||||||||||
| 617 | |||||||||||||||||||||
| 618 | |||||||||||||||||||||
| 619 | 1 | 1; | |||||||||||||||||||
| 620 | |||||||||||||||||||||
| 621 | __END__ | ||||||||||||||||||||