ClassFile/Struct/CodeAttribute.pm

filter: Statementstmt 69.5% 32 / 46 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 46.1% 6 / 13 Podpod n/a totaltotal 64.4% 38 / 59 SCAR 0.3
CC
1
Cov
70%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.0
« ClassFile/BNF/MethodsArray.pm ↑ Summary ClassFile/Struct/LocalVariable.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::CodeAttribute;
5 1 ▶use MarpaX::Java::ClassFile::Util::ArrayStringification qw/arrayStringificator/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 use MarpaX::Java::ClassFile::Struct::_Base
7 -tiny => [qw/_constant_pool attribute_name_index attribute_length max_stack max_locals code_length code exception_table_length exception_table attributes_count attributes/],
8 '""' => [
9 0 ▶ [ sub { 'Max stack' } => sub { $_[0]->max_stack } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
10 0 ▶ [ sub { 'Max locals' } => sub { $_[0]->max_locals } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 ▶ [ sub { 'Code' } => sub { $_[0]->arrayStringificator($_[0]->code) } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 0 ▶ [ sub { 'Exception table count' } => sub { $_[0]->exception_table_length } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
13 0 ▶ [ sub { 'Exception table' } => sub { $_[0]->arrayStringificator($_[0]->exception_table) } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 0 ▶ [ sub { 'Attributes count' } => sub { $_[0]->attributes_count } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
15 1 ▶ [ sub { 'Attributes' } => sub { $_[0]->arrayStringificator($_[0]->attributes) } ],
Subroutine __ANON__: not called CC=1 SCAR=2.6
16 ]
17 1 ▶ ;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 # ABSTRACT: Code_attribute
20  
21 1 our $VERSION = '0.008'; # VERSION
22  
23 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
24  
25 1 ▶use MarpaX::Java::ClassFile::Struct::_Types qw/U2 U4 OpCode ExceptionTable AttributeInfo/;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use Types::Standard qw/ArrayRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 1 has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef);
29 1 has attribute_name_index => ( is => 'ro', required => 1, isa => U2 );
30 1 has attribute_length => ( is => 'ro', required => 1, isa => U4 );
31 1 has max_stack => ( is => 'ro', required => 1, isa => U2 );
32 1 has max_locals => ( is => 'ro', required => 1, isa => U2 );
33 1 has code_length => ( is => 'ro', required => 1, isa => U4 );
34 1 has code => ( is => 'ro', required => 1, isa => ArrayRef[OpCode] );
35 1 has exception_table_length => ( is => 'ro', required => 1, isa => U2 );
36 1 has exception_table => ( is => 'ro', required => 1, isa => ArrayRef[ExceptionTable] );
37 1 has attributes_count => ( is => 'ro', required => 1, isa => U2 );
38 1 has attributes => ( is => 'ro', required => 1, isa => ArrayRef[AttributeInfo] );
39  
40 1 1;
41  
42 __END__
43  
44 =pod
45  
46 =encoding UTF-8
47  
48 =head1 NAME
49  
50 MarpaX::Java::ClassFile::Struct::CodeAttribute - Code_attribute
51  
52 =head1 VERSION
53  
54 version 0.008
55  
56 =head1 AUTHOR
57  
58 Jean-Damien Durand <jeandamiendurand@free.fr>
59  
60 =head1 COPYRIGHT AND LICENSE
61  
62 This software is copyright (c) 2016 by Jean-Damien Durand.
63  
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66  
67 =cut
« ClassFile/BNF/MethodsArray.pm ↑ Summary ClassFile/Struct/LocalVariable.pm »