line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PJVM::Class::Attribute::InnerClasses; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
16
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
97
|
|
4
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
81
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
|
|
16
|
use Object::Tiny qw( |
7
|
|
|
|
|
|
|
classes |
8
|
3
|
|
|
3
|
|
15
|
); |
|
3
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new_from_io { |
11
|
0
|
|
|
0
|
0
|
|
my ($pkg, $io, $cp) = @_; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
my $buff; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
read $io, $buff, 2; |
16
|
0
|
|
|
|
|
|
my $number_of_classes = unpack("n", $buff); |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
my @classes; |
19
|
0
|
|
|
|
|
|
while ($number_of_classes--) { |
20
|
0
|
|
|
|
|
|
read $io, $buff, 8; |
21
|
0
|
|
|
|
|
|
push @classes, [unpack("n*", $buff)]; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my $self = $pkg->new( |
25
|
|
|
|
|
|
|
classes => \@classes, |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return $self; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |