line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::String::match; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2205'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1911
|
use strict; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
97
|
|
5
|
3
|
|
|
3
|
|
31
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
102
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
17
|
use Moose::Util (); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
37
|
|
8
|
3
|
|
|
3
|
|
20
|
use Params::Util (); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
43
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
17
|
use Moose::Role; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
20
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Reader'; |
13
|
|
|
|
|
|
|
|
14
|
15
|
|
|
15
|
|
70
|
sub _minimum_arguments { 1 } |
15
|
|
|
|
|
|
|
|
16
|
15
|
|
|
15
|
|
55
|
sub _maximum_arguments { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _inline_check_arguments { |
19
|
15
|
|
|
15
|
|
51
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return ( |
22
|
15
|
|
|
|
|
58
|
'if (!Moose::Util::_STRINGLIKE0($_[0]) && !Params::Util::_REGEX($_[0])) {', |
23
|
|
|
|
|
|
|
$self->_inline_throw_exception( InvalidArgumentToMethod => |
24
|
|
|
|
|
|
|
'argument => $_[0],'. |
25
|
|
|
|
|
|
|
'type => "Str|RegexpRef",'. |
26
|
|
|
|
|
|
|
'type_of_argument => "string or regexp reference",'. |
27
|
|
|
|
|
|
|
'method_name => "match"', |
28
|
|
|
|
|
|
|
) . ';', |
29
|
|
|
|
|
|
|
'}', |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub _return_value { |
34
|
15
|
|
|
15
|
|
34
|
my $self = shift; |
35
|
15
|
|
|
|
|
41
|
my ($slot_access) = @_; |
36
|
|
|
|
|
|
|
|
37
|
15
|
|
|
|
|
136
|
return $slot_access . ' =~ $_[0]'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
3
|
|
|
3
|
|
52
|
no Moose::Role; |
|
3
|
|
|
|
|
18
|
|
|
3
|
|
|
|
|
16
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |