ClassFile/Struct/ConstantMethodHandleInfo.pm

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