File Coverage

blib/lib/Parse/Functions/Java.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 20 21 95.2


line stmt bran cond sub pod time code
1             package Parse::Functions::Java;
2              
3 1     1   32396 use 5.008;
  1         3  
  1         35  
4 1     1   7 use strict;
  1         2  
  1         47  
5 1     1   6 use warnings;
  1         2  
  1         24  
6 1     1   429 use Parse::Functions;
  1         2  
  1         111  
7              
8             our $VERSION = '0.01';
9             our @ISA = qw(Parse::Functions);
10              
11             ######################################################################
12              
13             sub function_re {
14 3     3 0 4 my ($self) = @_;
15              
16 3         13 my $newline = $self->newline;
17 3         1102 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;
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