ClassFile/Struct/ExceptionTable.pm

filter: Statementstmt 74.1% 23 / 31 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 5 / 9 Podpod n/a totaltotal 66.6% 28 / 42 SCAR 0.3
CC
1
Cov
70%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.0
« ClassFile/Struct/LocalVariableType.pm ↑ Summary ClassFile/BNF/ElementValuePairArray.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::ExceptionTable;
5 use MarpaX::Java::ClassFile::Struct::_Base
6 -tiny => [qw/_constant_pool start_pc end_pc handler_pc catch_type/],
7 '""' => [
8 #
9 # catch_type can be 0
10 #
11 0 ▶ [ sub { 'Catch Type#' . $_[0]->catch_type } => sub { ($_[0]->catch_type > 0) ? $_[0]->_constant_pool->[$_[0]->catch_type] : '' } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->catch_type > 0 ? : 0 0 0
12 0 ▶ [ sub { 'Start pc' } => sub { $_[0]->start_pc } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
13 0 ▶ [ sub { 'End pc' } => sub { $_[0]->end_pc } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 1 ▶ [ sub { 'Handler pc' } => sub { $_[0]->handler_pc } ]
Subroutine __ANON__: not called CC=1 SCAR=2.6
15 1 ▶ ];
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 # ABSTRACT: exception_table
18  
19 1 our $VERSION = '0.008'; # VERSION
20  
21 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
22  
23 1 ▶use MarpaX::Java::ClassFile::Struct::_Types qw/U2/;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Types::Standard qw/ArrayRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 1 has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef);
27 1 has start_pc => ( is => 'ro', required => 1, isa => U2 );
28 1 has end_pc => ( is => 'ro', required => 1, isa => U2 );
29 1 has handler_pc => ( is => 'ro', required => 1, isa => U2 );
30 1 has catch_type => ( is => 'ro', required => 1, isa => U2 );
31  
32 1 1;
33  
34 __END__
35  
36 =pod
37  
38 =encoding UTF-8
39  
40 =head1 NAME
41  
42 MarpaX::Java::ClassFile::Struct::ExceptionTable - exception_table
43  
44 =head1 VERSION
45  
46 version 0.008
47  
48 =head1 AUTHOR
49  
50 Jean-Damien Durand <jeandamiendurand@free.fr>
51  
52 =head1 COPYRIGHT AND LICENSE
53  
54 This software is copyright (c) 2016 by Jean-Damien Durand.
55  
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58  
59 =cut
« ClassFile/Struct/LocalVariableType.pm ↑ Summary ClassFile/BNF/ElementValuePairArray.pm »