ClassFile/Struct/SyntheticAttribute.pm

filter: Statementstmt 91.3% 21 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 89.6% 26 / 29 SCAR 0.0
CC
1
Cov
91%
__ANON__
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ClassFile/Struct/DeprecatedAttribute.pm ↑ Summary ClassFile/Struct/AnnotationDefaultAttribute.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::SyntheticAttribute;
5 use MarpaX::Java::ClassFile::Struct::_Base
6 -tiny => [qw/_constant_pool attribute_name_index attribute_length/],
7 '""' => [
8 1 ▶ [ sub { 'Attribute name#' . $_[0]->attribute_name_index } => sub { $_[0]->_constant_pool->[$_[0]->attribute_name_index] } ]
Subroutine __ANON__: not called CC=1 SCAR=2.6
9 1 ▶ ];
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 # ABSTRACT: Synthetic_attribute
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 U4/;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Types::Standard qw/ArrayRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef);
21 1 has attribute_name_index => ( is => 'ro', required => 1, isa => U2 );
22 1 has attribute_length => ( is => 'ro', required => 1, isa => U4 );
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::SyntheticAttribute - Synthetic_attribute
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/DeprecatedAttribute.pm ↑ Summary ClassFile/Struct/AnnotationDefaultAttribute.pm »