line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Tomcat::Connector; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use overload |
7
|
1
|
|
|
1
|
|
3
|
( '""' => \&name ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @ATTR = qw(name stats scoreboard); |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
115
|
foreach my $attr ( @ATTR ) {{ |
12
|
1
|
|
|
1
|
|
106
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
13
|
|
|
|
|
|
|
*{ __PACKAGE__ . "::$attr" } = sub { |
14
|
0
|
|
|
0
|
|
|
my $self = shift; return $self->{$attr} |
|
0
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
}} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new { |
19
|
0
|
|
|
0
|
1
|
|
my ( $class, %args ) = @_; |
20
|
0
|
|
|
|
|
|
my $self = bless {}, $class; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
$self->{name} = $args{name}; |
23
|
0
|
|
|
|
|
|
$self->{stats} = $args{stats}; |
24
|
0
|
|
|
|
|
|
$self->{scoreboard} = $args{scoreboard}; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
return $self; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |