| 1 | package SPVM::BlessedObject; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 1310 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | 655 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | |||||||||||||||
| 6 | 5 | ▶ | sub __api { | ||||||||||||
|
Subroutine
__api: called CC=2 SCAR=7.8
| |||||||||||||||
| 7 | 24 | ▶ | my $self = shift; | ||||||||||||
|
Subroutine
__api: called CC=2 SCAR=7.8
| |||||||||||||||
| 8 | 24 | ▶ | if (@_) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 9 | 0 | $self->{__api} = $_[0]; | |||||||||||||
| 10 | 0 | return $self; | |||||||||||||
| 11 | } | ||||||||||||||
| 12 | else { | ||||||||||||||
| 13 | 24 | return $self->{__api}; | |||||||||||||
| 14 | } | ||||||||||||||
| 15 | } | ||||||||||||||
| 16 | |||||||||||||||
| 17 | 0 | ▶ | sub __get_type_name { my $ret; eval { $ret = shift->_xs___get_type_name(@_) }; if ($@) { confess($@) } $ret; } | ||||||||||||
|
Subroutine
__get_type_name: called CC=2 SCAR=15.4
Branch: 1 branch
| |||||||||||||||
| 18 | |||||||||||||||
| 19 | 1; | ||||||||||||||
| 20 | |||||||||||||||
| 21 | =head1 Name | ||||||||||||||
| 22 | |||||||||||||||
| 23 | SPVM::BlessedObject - SPVM object | ||||||||||||||
| 24 | |||||||||||||||
| 25 | =head1 Description | ||||||||||||||
| 26 | |||||||||||||||
| 27 | The object of C<SPVM::BlessedObject> class holds an SPVM object. | ||||||||||||||
| 28 | |||||||||||||||
| 29 | =head1 Instance Methods | ||||||||||||||
| 30 | |||||||||||||||
| 31 | =head2 __api | ||||||||||||||
| 32 | |||||||||||||||
| 33 | my $api = $self->__api; | ||||||||||||||
| 34 | $self->__api($api); | ||||||||||||||
| 35 | |||||||||||||||
| 36 | Gets and sets a L<SPVM::ExchangeAPI> object. | ||||||||||||||
| 37 | |||||||||||||||
| 38 | =head2 __get_type_name | ||||||||||||||
| 39 | |||||||||||||||
| 40 | my $type_name = $self->__get_type_name; | ||||||||||||||
| 41 | |||||||||||||||
| 42 | Gets the SPVM type name of the object. | ||||||||||||||
| 43 | |||||||||||||||
| 44 | =head1 Well Known Child Classes | ||||||||||||||
| 45 | |||||||||||||||
| 46 | =over 2 | ||||||||||||||
| 47 | |||||||||||||||
| 48 | =item * L<SPVM::BlessedObject::String> | ||||||||||||||
| 49 | |||||||||||||||
| 50 | =item * L<SPVM::BlessedObject::Array> | ||||||||||||||
| 51 | |||||||||||||||
| 52 | =item * L<SPVM::BlessedObject::Class> | ||||||||||||||
| 53 | |||||||||||||||
| 54 | =back | ||||||||||||||
| 55 | |||||||||||||||
| 56 | =head1 Copyright & License | ||||||||||||||
| 57 | |||||||||||||||
| 58 | Copyright (c) 2023 Yuki Kimoto | ||||||||||||||
| 59 | |||||||||||||||
| 60 | MIT License | ||||||||||||||