line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
# $Source$ |
3
|
|
|
|
|
|
|
# $Author$ |
4
|
|
|
|
|
|
|
# $HeadURL$ |
5
|
|
|
|
|
|
|
# $Revision$ |
6
|
|
|
|
|
|
|
# $Date$ |
7
|
|
|
|
|
|
|
package Class::Dot::Policy::Mutator; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
538
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
10
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
19
|
|
11
|
1
|
|
|
1
|
|
3
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
12
|
1
|
|
|
1
|
|
3981
|
use 5.00600; |
|
1
|
|
|
|
|
175
|
|
|
1
|
|
|
|
|
1692
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = qv('2.0.0_15'); |
15
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:ASKSH'; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
8
|
use Class::Dot::Policy; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
my @PUSH_POLICY = qw( |
20
|
|
|
|
|
|
|
:fast |
21
|
|
|
|
|
|
|
-getter_prefix= |
22
|
|
|
|
|
|
|
-setter_prefix= |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub import { |
26
|
1
|
|
|
1
|
|
7
|
my ($this_class, @args) = @_; |
27
|
1
|
|
|
|
|
3
|
my $caller_class = caller 0; |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
23
|
strict->import(); |
30
|
1
|
|
|
|
|
10
|
warnings->import(); |
31
|
|
|
|
|
|
|
|
32
|
1
|
50
|
|
|
|
5
|
return if $caller_class eq 'main'; |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
|
|
5
|
my @policy = Class::Dot::Policy->_create_policy(\@PUSH_POLICY, @args); |
35
|
|
|
|
|
|
|
|
36
|
1
|
|
|
|
|
5
|
return Class::Dot::Policy->_dotify_class($caller_class, @policy); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |