Functions/Java.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Functions/CSharp.pm ↑ Summary Functions/Perl.pm »
1 package Parse::Functions::Java;
2  
3 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Parse::Functions;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '0.01';
9 1 our @ISA = qw(Parse::Functions);
10  
11 ######################################################################
12  
13 3 ▶sub function_re {
Subroutine function_re: called CC=1 SCAR=0.0
Pod undocumented
14 3 my ($self) = @_;
15  
16 3 my $newline = $self->newline;
17 3 return qr{
18 /\*.+?\*/ # block comment
19 |
20 \/\/.+?$newline # line comment
21 |
22 (?:^|$newline) # text start or newline
23 \s*
24 (?:
25 (?:
26 (?: public|protected|private|abstract|static|
27 final|native|synchronized|transient|volatile|
28 strictfp)
29 \s+
30 ){0,2} # zero to 2 method modifiers
31 (?: <\w+>\s+ )? # optional: generic type parameter
32 (?: [\w\[\]<>]+) # return data type
33 \s+
34 (\w+) # method name
35 \s*
36 \(.*?\) # parentheses around the parameters
37 )
38 }sx;
39 }
40  
41 1 1;
42  
43 # Copyright 2008-2014 The Padre development team as listed in Padre.pm.
44 # LICENSE
45 # This program is free software; you can redistribute it and/or
46 # modify it under the same terms as Perl 5 itself.
47  
« Functions/CSharp.pm ↑ Summary Functions/Perl.pm »