ClassFile/Struct/LocalVariableType.pm

filter: Statementstmt 70.5% 24 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 5 / 10 Podpod n/a totaltotal 65.9% 29 / 44 SCAR 0.3
CC
1
Cov
71%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.0
« ClassFile/Struct/LocalVariable.pm ↑ Summary ClassFile/Struct/ExceptionTable.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Java::ClassFile::Struct::LocalVariableType;
5 use MarpaX::Java::ClassFile::Struct::_Base
6 -tiny => [qw/_constant_pool start_pc length name_index signature_index index/],
7 '""' => [
8 0 ▶ [ sub { 'Name#' . $_[0]->name_index } => sub { $_[0]->_constant_pool->[$_[0]->name_index] } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
9 0 ▶ [ sub { 'Signature#' . $_[0]->signature_index } => sub { $_[0]->_constant_pool->[$_[0]->signature_index] } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
10 0 ▶ [ sub { 'Start pc' } => sub { $_[0]->start_pc } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 ▶ [ sub { 'Length' } => sub { $_[0]->length } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 1 ▶ [ sub { 'Index' } => sub { $_[0]->index } ]
Subroutine __ANON__: not called CC=1 SCAR=2.6
13 1 ▶ ];
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 # ABSTRACT: local variable type
16  
17 1 our $VERSION = '0.008'; # VERSION
18  
19 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
20  
21 1 ▶use MarpaX::Java::ClassFile::Struct::_Types qw/U2/;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use Types::Standard qw/ArrayRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef);
25 1 has start_pc => ( is => 'ro', required => 1, isa => U2 );
26 1 has length => ( is => 'ro', required => 1, isa => U2 );
27 1 has name_index => ( is => 'ro', required => 1, isa => U2 );
28 1 has signature_index => ( is => 'ro', required => 1, isa => U2 );
29 1 has index => ( is => 'ro', required => 1, isa => U2 );
30  
31 1 1;
32  
33 __END__
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 MarpaX::Java::ClassFile::Struct::LocalVariableType - local variable type
42  
43 =head1 VERSION
44  
45 version 0.008
46  
47 =head1 AUTHOR
48  
49 Jean-Damien Durand <jeandamiendurand@free.fr>
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2016 by Jean-Damien Durand.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
« ClassFile/Struct/LocalVariable.pm ↑ Summary ClassFile/Struct/ExceptionTable.pm »