ClassFile/Struct/ConstValueIndex.pm

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