line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MouseX::POE; |
2
|
|
|
|
|
|
|
# ABSTRACT: The Illicit Love Child of Mouse and POE |
3
|
|
|
|
|
|
|
$MouseX::POE::VERSION = '0.216'; |
4
|
16
|
|
|
16
|
|
145263
|
use Mouse (); |
|
16
|
|
|
|
|
206714
|
|
|
16
|
|
|
|
|
274
|
|
5
|
11
|
|
|
11
|
|
85
|
use Mouse::Exporter; |
|
11
|
|
|
|
|
13
|
|
|
11
|
|
|
|
|
43
|
|
6
|
11
|
|
|
11
|
|
4732
|
use Mouse::Util::MetaRole; |
|
11
|
|
|
|
|
5225
|
|
|
11
|
|
|
|
|
272
|
|
7
|
11
|
|
|
11
|
|
74
|
use Mouse::Util; |
|
11
|
|
|
|
|
15
|
|
|
11
|
|
|
|
|
37
|
|
8
|
11
|
|
|
11
|
|
3507
|
use MouseX::POE::Meta::Trait::Class; |
|
11
|
|
|
|
|
27
|
|
|
11
|
|
|
|
|
1819
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Mouse::Exporter->setup_import_methods( |
11
|
|
|
|
|
|
|
as_is => [qw(event)], |
12
|
|
|
|
|
|
|
also => 'Mouse', |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub init_meta { |
16
|
16
|
|
|
16
|
0
|
1690
|
my ( $class, %args ) = @_; |
17
|
|
|
|
|
|
|
|
18
|
16
|
|
|
|
|
23
|
my $for = $args{for_class}; |
19
|
11
|
|
|
11
|
|
4613
|
eval qq{package $for; use POE; }; |
|
11
|
|
|
|
|
321710
|
|
|
11
|
|
|
|
|
64
|
|
|
16
|
|
|
|
|
1066
|
|
20
|
|
|
|
|
|
|
|
21
|
16
|
|
|
|
|
541493
|
my $meta = Mouse->init_meta( %args ); |
22
|
|
|
|
|
|
|
|
23
|
16
|
|
|
|
|
3278
|
Mouse::Util::MetaRole::apply_metaroles( |
24
|
|
|
|
|
|
|
for => $args{for_class}, |
25
|
|
|
|
|
|
|
class_metaroles => { |
26
|
|
|
|
|
|
|
class => ['MouseX::POE::Meta::Trait::Class'], |
27
|
|
|
|
|
|
|
}, |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
16
|
|
|
|
|
93191
|
Mouse::Util::MetaRole::apply_base_class_roles( |
31
|
|
|
|
|
|
|
for_class => $args{for_class}, |
32
|
|
|
|
|
|
|
roles => ['MouseX::POE::Meta::Trait::Object','MouseX::POE::Meta::Trait','MouseX::POE::Meta::Trait::Class'], |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
16
|
|
|
|
|
43144
|
return $meta; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub event { |
39
|
11
|
|
|
11
|
1
|
1570
|
my $class = Mouse::Meta::Class->initialize( scalar caller ); |
40
|
11
|
|
|
|
|
109
|
$class->add_state_method( @_ ); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |