line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GraphViz::Diagram::ClassDiagram::Method; |
2
|
1
|
|
|
1
|
|
492
|
use GraphViz::Diagram::ClassDiagram::ClassElement; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
154
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our @ISA = qw(GraphViz::Diagram::ClassDiagram::ClassElement); |
5
|
|
|
|
|
|
|
our $VERSION = $GraphViz::Diagram::ClassDiagram::VERSION; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new { #_{ |
8
|
0
|
|
|
0
|
0
|
|
my $class_myself = shift; |
9
|
0
|
|
|
|
|
|
my $class = shift; |
10
|
0
|
|
|
|
|
|
my $ident = shift; |
11
|
0
|
|
|
|
|
|
my $opts = shift; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# my $self = {}; |
14
|
|
|
|
|
|
|
|
15
|
0
|
0
|
|
|
|
|
croak unless ref $class eq 'GraphViz::Class'; |
16
|
|
|
|
|
|
|
|
17
|
0
|
0
|
|
|
|
|
$opts->{type} = delete $opts->{returns} if exists $opts->{returns}; |
18
|
|
|
|
|
|
|
# $class_myself->SUPER::new($self, $class, $ident, $opts); |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $self = $class_myself->SUPER::new($class, $ident, $opts); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# bless $self, $class_myself; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
return $self; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} #_} |
27
|
|
|
|
|
|
|
sub ident_color { #_{ |
28
|
0
|
|
|
0
|
0
|
|
return '#b08f25'; |
29
|
|
|
|
|
|
|
} #_} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
'tq84'; |