ClassFile/Struct/ElementValuePair.pm

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