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