| 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::AppendFrame; | ||
| 5 | 1 | ▶ | use MarpaX::Java::ClassFile::Util::FrameTypeStringification qw/frameTypeStringificator/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use MarpaX::Java::ClassFile::Util::ArrayStringification qw/arrayStringificator/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | use MarpaX::Java::ClassFile::Struct::_Base | ||
| 8 | -tiny => [qw/frame_type offset_delta locals/], | ||
| 9 | '""' => [ | ||
| 10 | 0 | ▶ | [ sub { 'Frame type' } => sub { $_[0]->frameTypeStringificator($_[0]->frame_type) } ], |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 11 | 0 | ▶ | [ sub { 'Offset delta' } => sub { $_[0]->offset_delta } ], |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 12 | 0 | ▶ | [ sub { 'Locals count' } => sub { $_[0]->frame_type - 251 } ], |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 13 | 1 | ▶ | [ sub { 'Locals' } => sub { $_[0]->arrayStringificator($_[0]->locals) } ] |
|
Subroutine
__ANON__: not called CC=1 SCAR=2.6
| |||
| 14 | 1 | ▶ | ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | # ABSTRACT: append_frame | ||
| 17 | |||
| 18 | 1 | our $VERSION = '0.008'; # VERSION | |
| 19 | |||
| 20 | 1 | our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY | |
| 21 | |||
| 22 | 1 | ▶ | use MarpaX::Java::ClassFile::Struct::_Types qw/U1 U2 VerificationTypeInfo/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 1 | ▶ | use Types::Standard qw/ArrayRef/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 1 | has frame_type => ( is => 'ro', required => 1, isa => U1 ); | |
| 26 | 1 | has offset_delta => ( is => 'ro', required => 1, isa => U2 ); | |
| 27 | 1 | has locals => ( is => 'ro', required => 1, isa => ArrayRef[VerificationTypeInfo] ); | |
| 28 | |||
| 29 | 1 | 1; | |
| 30 | |||
| 31 | __END__ | ||
| 32 | |||
| 33 | =pod | ||
| 34 | |||
| 35 | =encoding UTF-8 | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | MarpaX::Java::ClassFile::Struct::AppendFrame - append_frame | ||
| 40 | |||
| 41 | =head1 VERSION | ||
| 42 | |||
| 43 | version 0.008 | ||
| 44 | |||
| 45 | =head1 AUTHOR | ||
| 46 | |||
| 47 | Jean-Damien Durand <jeandamiendurand@free.fr> | ||
| 48 | |||
| 49 | =head1 COPYRIGHT AND LICENSE | ||
| 50 | |||
| 51 | This software is copyright (c) 2016 by Jean-Damien Durand. | ||
| 52 | |||
| 53 | This is free software; you can redistribute it and/or modify it under | ||
| 54 | the same terms as the Perl 5 programming language system itself. | ||
| 55 | |||
| 56 | =cut | ||