| 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::Class; | ||||||||||
| 5 | 1 | ▶ | use MarpaX::Java::ClassFile::Util::AccessFlagsStringification qw/accessFlagsStringificator/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | use MarpaX::Java::ClassFile::Struct::_Base | ||||||||||
| 7 | -tiny => [qw/_constant_pool inner_class_info_index outer_class_info_index inner_name_index inner_class_access_flags/], | ||||||||||
| 8 | '""' => [ | ||||||||||
| 9 | 0 | ▶ | [ sub { 'Inner class info#' . $_[0]->inner_class_info_index } => sub { $_[0]->_constant_pool->[$_[0]->inner_class_info_index] } ], | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 10 | # | ||||||||||
| 11 | # outer_class_info_index can be zero | ||||||||||
| 12 | # | ||||||||||
| 13 | 0 | ▶ | [ sub { 'Outer class Info#' . $_[0]->outer_class_info_index } => sub { ($_[0]->outer_class_info_index > 0) ? $_[0]->_constant_pool->[$_[0]->outer_class_info_index] : '' } ], | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 14 | # | ||||||||||
| 15 | # inner_name_index can be zero | ||||||||||
| 16 | # | ||||||||||
| 17 | 0 | ▶ | [ sub { 'Inner name#' . $_[0]->inner_name_index } => sub { ($_[0]->inner_name_index > 0) ? $_[0]->_constant_pool->[$_[0]->inner_name_index] : '' } ], | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 18 | 1 | ▶ | [ sub { 'Inner class access flags' } => sub { $_[0]->accessFlagsStringificator($_[0]->inner_class_access_flags) } ] | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=2.6
| |||||||||||
| 19 | 1 | ▶ | ]; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | |||||||||||
| 21 | # ABSTRACT: classes | ||||||||||
| 22 | |||||||||||
| 23 | 1 | our $VERSION = '0.008'; # VERSION | |||||||||
| 24 | |||||||||||
| 25 | 1 | our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY | |||||||||
| 26 | |||||||||||
| 27 | 1 | ▶ | use MarpaX::Java::ClassFile::Struct::_Types qw/U2/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 28 | 1 | ▶ | use Types::Standard qw/ArrayRef/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 29 | |||||||||||
| 30 | 1 | has _constant_pool => ( is => 'rw', required => 1, isa => ArrayRef); | |||||||||
| 31 | 1 | has inner_class_info_index => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 32 | 1 | has outer_class_info_index => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 33 | 1 | has inner_name_index => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 34 | 1 | has inner_class_access_flags => ( is => 'ro', required => 1, isa => U2 ); | |||||||||
| 35 | |||||||||||
| 36 | 1 | 1; | |||||||||
| 37 | |||||||||||
| 38 | __END__ | ||||||||||
| 39 | |||||||||||
| 40 | =pod | ||||||||||
| 41 | |||||||||||
| 42 | =encoding UTF-8 | ||||||||||
| 43 | |||||||||||
| 44 | =head1 NAME | ||||||||||
| 45 | |||||||||||
| 46 | MarpaX::Java::ClassFile::Struct::Class - classes | ||||||||||
| 47 | |||||||||||
| 48 | =head1 VERSION | ||||||||||
| 49 | |||||||||||
| 50 | version 0.008 | ||||||||||
| 51 | |||||||||||
| 52 | =head1 AUTHOR | ||||||||||
| 53 | |||||||||||
| 54 | Jean-Damien Durand <jeandamiendurand@free.fr> | ||||||||||
| 55 | |||||||||||
| 56 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 57 | |||||||||||
| 58 | This software is copyright (c) 2016 by Jean-Damien Durand. | ||||||||||
| 59 | |||||||||||
| 60 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 61 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 62 | |||||||||||
| 63 | =cut | ||||||||||