line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
# $Source$ |
3
|
|
|
|
|
|
|
# $Author$ |
4
|
|
|
|
|
|
|
# $HeadURL$ |
5
|
|
|
|
|
|
|
# $Revision$ |
6
|
|
|
|
|
|
|
# $Date$ |
7
|
|
|
|
|
|
|
package Class::Dot2; |
8
|
|
|
|
|
|
|
|
9
|
10
|
|
|
10
|
|
339218
|
use strict; |
|
10
|
|
|
|
|
24
|
|
|
10
|
|
|
|
|
723
|
|
10
|
10
|
|
|
10
|
|
56
|
use warnings; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
287
|
|
11
|
10
|
|
|
10
|
|
18963
|
use version; |
|
10
|
|
|
|
|
26096
|
|
|
10
|
|
|
|
|
62
|
|
12
|
10
|
|
|
10
|
|
1147
|
use 5.00600; |
|
10
|
|
|
|
|
62
|
|
|
10
|
|
|
|
|
679
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = qv('2.0.0_15'); |
15
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:ASKSH'; |
16
|
|
|
|
|
|
|
|
17
|
10
|
|
|
10
|
|
7594
|
use Class::Dot::Policy; |
|
10
|
|
|
|
|
36
|
|
|
10
|
|
|
|
|
70
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our @PUSH_POLICY = qw( |
20
|
|
|
|
|
|
|
-new -optimized |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has property extends composite |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
after_property_get after_property_set |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
finalize_class |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub import { |
30
|
17
|
|
|
17
|
|
1491
|
my ($this_class, @args) = @_; |
31
|
17
|
|
|
|
|
45
|
my $caller_class = caller 0; |
32
|
|
|
|
|
|
|
|
33
|
17
|
|
|
|
|
359
|
strict->import(); |
34
|
17
|
|
|
|
|
233
|
warnings->import(); |
35
|
17
|
|
|
|
|
78
|
version->import(); |
36
|
|
|
|
|
|
|
|
37
|
17
|
100
|
|
|
|
702
|
return if $caller_class eq 'main'; |
38
|
|
|
|
|
|
|
|
39
|
15
|
|
|
|
|
92
|
my @policy = Class::Dot::Policy->_create_policy(\@PUSH_POLICY, @args); |
40
|
|
|
|
|
|
|
|
41
|
15
|
|
|
|
|
77
|
return Class::Dot::Policy->_dotify_class($caller_class, @policy); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |