ClassFile/Struct/TypeAnnotation.pm

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