ClassFile/Struct/Parameter.pm

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