line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::String::match; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2203'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1996
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
97
|
|
5
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
88
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
14
|
use Moose::Util (); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
56
|
|
8
|
3
|
|
|
3
|
|
16
|
use Params::Util (); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
45
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
14
|
use Moose::Role; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
22
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Reader'; |
13
|
|
|
|
|
|
|
|
14
|
15
|
|
|
15
|
|
56
|
sub _minimum_arguments { 1 } |
15
|
|
|
|
|
|
|
|
16
|
15
|
|
|
15
|
|
47
|
sub _maximum_arguments { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _inline_check_arguments { |
19
|
15
|
|
|
15
|
|
32
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return ( |
22
|
15
|
|
|
|
|
43
|
'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
|
|
29
|
my $self = shift; |
35
|
15
|
|
|
|
|
26
|
my ($slot_access) = @_; |
36
|
|
|
|
|
|
|
|
37
|
15
|
|
|
|
|
122
|
return $slot_access . ' =~ $_[0]'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
3
|
|
|
3
|
|
24
|
no Moose::Role; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
14
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |