ClassFile/Struct/BootstrapMethod.pm

filter: Statementstmt 80.6% 25 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 6 / 9 Podpod n/a totaltotal 77.5% 31 / 40 SCAR 0.1
CC
1
Cov
81%
__ANON__
2.0
__ANON__
2.0
__ANON__
1.3
CRAP 1.0
« ClassFile/Struct/Annotation.pm ↑ Summary ClassFile/Struct/EnclosingMethodAttribute.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::BootstrapMethod;
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 bootstrap_method_ref num_bootstrap_arguments bootstrap_arguments/],
8 '""' => [
9 0 ▶ [ sub { 'Bootstrap method#' . $_[0]->bootstrap_method_ref } => sub { $_[0]->_constant_pool->[$_[0]->bootstrap_method_ref] } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
10 0 ▶ [ sub { 'Bootstrap arguments count' } => sub { $_[0]->num_bootstrap_arguments } ],
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 1 ▶ [ sub { 'Bootstrap arguments' } => sub { $_[0]->arrayStringificator($_[0]->bootstrap_arguments) } ]
Subroutine __ANON__: not called CC=1 SCAR=2.6
12 1 ▶ ];
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 # ABSTRACT: bootstrap method
15  
16 1 our $VERSION = '0.008'; # VERSION
17  
18 1 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
19  
20 1 ▶use MarpaX::Java::ClassFile::Struct::_Types qw/U2/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Types::Standard qw/ArrayRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef);
24 1 has bootstrap_method_ref => ( is => 'ro', required => 1, isa => U2 );
25 1 has num_bootstrap_arguments => ( is => 'ro', required => 1, isa => U2 );
26 1 has bootstrap_arguments => ( is => 'ro', required => 1, isa => ArrayRef[U2] );
27  
28 1 1;
29  
30 __END__
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =head1 NAME
37  
38 MarpaX::Java::ClassFile::Struct::BootstrapMethod - bootstrap method
39  
40 =head1 VERSION
41  
42 version 0.008
43  
44 =head1 AUTHOR
45  
46 Jean-Damien Durand <jeandamiendurand@free.fr>
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 This software is copyright (c) 2016 by Jean-Damien Durand.
51  
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54  
55 =cut
« ClassFile/Struct/Annotation.pm ↑ Summary ClassFile/Struct/EnclosingMethodAttribute.pm »