line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################### |
2
|
|
|
|
|
|
|
# File::Comments::Plugin::Java |
3
|
|
|
|
|
|
|
# 2005, Mike Schilli |
4
|
|
|
|
|
|
|
########################################### |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
########################################### |
7
|
|
|
|
|
|
|
package File::Comments::Plugin::Java; |
8
|
|
|
|
|
|
|
########################################### |
9
|
|
|
|
|
|
|
|
10
|
9
|
|
|
9
|
|
8590
|
use strict; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
325
|
|
11
|
9
|
|
|
9
|
|
73
|
use warnings; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
302
|
|
12
|
9
|
|
|
9
|
|
5313
|
use File::Comments::Plugin::C; |
|
9
|
|
|
|
|
28
|
|
|
9
|
|
|
|
|
287
|
|
13
|
9
|
|
|
9
|
|
61
|
use Log::Log4perl qw(:easy); |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
42
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
16
|
|
|
|
|
|
|
our @ISA = qw(File::Comments::Plugin::C); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
########################################### |
19
|
|
|
|
|
|
|
sub init { |
20
|
|
|
|
|
|
|
########################################### |
21
|
11
|
|
|
11
|
0
|
27
|
my($self) = @_; |
22
|
|
|
|
|
|
|
|
23
|
11
|
|
|
|
|
87
|
$self->register_suffix(".java"); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
########################################### |
27
|
|
|
|
|
|
|
sub type { |
28
|
|
|
|
|
|
|
########################################### |
29
|
0
|
|
|
0
|
0
|
0
|
my($self, $target) = @_; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
0
|
return "java"; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
########################################### |
35
|
|
|
|
|
|
|
sub comments { |
36
|
|
|
|
|
|
|
########################################### |
37
|
1
|
|
|
1
|
0
|
13
|
my($self, $target) = @_; |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
23
|
return $self->extract_c_comments($target); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
########################################### |
43
|
|
|
|
|
|
|
sub stripped { |
44
|
|
|
|
|
|
|
########################################### |
45
|
0
|
|
|
0
|
0
|
|
my($self, $target) = @_; |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
return $self->strip_c_comments($target); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
__END__ |