| 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::EnclosingMethodAttribute; | ||||||||||
| 5 | use MarpaX::Java::ClassFile::Struct::_Base | ||||||||||
| 6 | -tiny => [qw/_constant_pool attribute_name_index attribute_length class_index method_index/], | ||||||||||
| 7 | '""' => [ | ||||||||||
| 8 | 0 | ▶ | [ sub { 'Class#' . $_[0]->class_index } => sub { $_[0]->_constant_pool->[$_[0]->class_index] } ], | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 9 | # | ||||||||||
| 10 | # Method index can be zero | ||||||||||
| 11 | # | ||||||||||
| 12 | 1 | ▶ | [ sub { 'Method#' . $_[0]->method_index } => sub { ($_[0]->method_index > 0) ? $_[0]->_constant_pool->[$_[0]->method_index] : '' } ] | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=4.1
Branch: 1 branch
| |||||||||||
| 13 | 1 | ▶ | ]; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | # ABSTRACT: EnclosingMethod_attribute | ||||||||||
| 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/U2 U4/; | ||||||||
|
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 attribute_name_index => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 26 | 1 | has attribute_length => ( is => 'ro', required => 1, isa => U4 ); | |||||||||
| 27 | 1 | has class_index => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 28 | 1 | has method_index => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 29 | |||||||||||
| 30 | 1 | 1; | |||||||||
| 31 | |||||||||||
| 32 | __END__ | ||||||||||
| 33 | |||||||||||
| 34 | =pod | ||||||||||
| 35 | |||||||||||
| 36 | =encoding UTF-8 | ||||||||||
| 37 | |||||||||||
| 38 | =head1 NAME | ||||||||||
| 39 | |||||||||||
| 40 | MarpaX::Java::ClassFile::Struct::EnclosingMethodAttribute - EnclosingMethod_attribute | ||||||||||
| 41 | |||||||||||
| 42 | =head1 VERSION | ||||||||||
| 43 | |||||||||||
| 44 | version 0.008 | ||||||||||
| 45 | |||||||||||
| 46 | =head1 AUTHOR | ||||||||||
| 47 | |||||||||||
| 48 | Jean-Damien Durand <jeandamiendurand@free.fr> | ||||||||||
| 49 | |||||||||||
| 50 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 51 | |||||||||||
| 52 | This software is copyright (c) 2016 by Jean-Damien Durand. | ||||||||||
| 53 | |||||||||||
| 54 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 55 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 56 | |||||||||||
| 57 | =cut | ||||||||||