line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Tree::Visualize::Connector::IConnector; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
86
|
|
5
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
70
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
15
|
use Tree::Visualize::Exceptions; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
456
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
## constructor |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
28
|
|
|
28
|
1
|
29
|
my ($_class) = @_; |
15
|
28
|
|
33
|
|
|
90
|
my $class = ref($_class) || $_class; |
16
|
28
|
|
|
|
|
33
|
my $connector = {}; |
17
|
28
|
|
|
|
|
72
|
bless($connector, $class); |
18
|
28
|
|
|
|
|
63
|
return $connector; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub checkArgs { |
22
|
28
|
|
|
28
|
1
|
38
|
my ($self, @args) = @_; |
23
|
|
|
|
|
|
|
(defined($_) && ref($_) && UNIVERSAL::isa($_, "Tree::Visualize::ASCII::BoundingBox")) |
24
|
|
|
|
|
|
|
|| throw Tree::Visualize::InsufficientArguments "argument must be a bounding box" |
25
|
28
|
|
33
|
|
|
393
|
foreach @args; |
|
|
|
33
|
|
|
|
|
|
|
|
33
|
|
|
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |