line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Aspect::Point::Before; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=pod |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Aspect::Point - The Join Point context for "before" advice code |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 METHODS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=cut |
14
|
|
|
|
|
|
|
|
15
|
21
|
|
|
21
|
|
80
|
use strict; |
|
21
|
|
|
|
|
25
|
|
|
21
|
|
|
|
|
525
|
|
16
|
21
|
|
|
21
|
|
73
|
use warnings; |
|
21
|
|
|
|
|
21
|
|
|
21
|
|
|
|
|
445
|
|
17
|
21
|
|
|
21
|
|
71
|
use Aspect::Point (); |
|
21
|
|
|
|
|
22
|
|
|
21
|
|
|
|
|
887
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our $VERSION = '0.97_06'; |
20
|
|
|
|
|
|
|
our @ISA = 'Aspect::Point'; |
21
|
|
|
|
|
|
|
|
22
|
21
|
|
|
21
|
|
85
|
use constant type => 'before'; |
|
21
|
|
|
|
|
38
|
|
|
21
|
|
|
|
|
2573
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub original { |
25
|
|
|
|
|
|
|
$_[0]->{original}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub proceed { |
29
|
|
|
|
|
|
|
@_ > 1 ? $_[0]->{proceed} = $_[1] : $_[0]->{proceed}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
###################################################################### |
37
|
|
|
|
|
|
|
# Optional XS Acceleration |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
BEGIN { |
40
|
21
|
|
|
21
|
|
32
|
local $@; |
41
|
21
|
|
|
21
|
|
1575
|
eval <<'END_PERL'; |
|
21
|
|
|
|
|
87
|
|
|
21
|
|
|
|
|
346
|
|
|
21
|
|
|
|
|
150
|
|
42
|
|
|
|
|
|
|
use Class::XSAccessor 1.08 { |
43
|
|
|
|
|
|
|
replace => 1, |
44
|
|
|
|
|
|
|
getters => { |
45
|
|
|
|
|
|
|
'original' => 'original', |
46
|
|
|
|
|
|
|
}, |
47
|
|
|
|
|
|
|
accessors => { |
48
|
|
|
|
|
|
|
'proceed' => 'proceed', |
49
|
|
|
|
|
|
|
}, |
50
|
|
|
|
|
|
|
}; |
51
|
|
|
|
|
|
|
END_PERL |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=pod |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHORS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Adam Kennedy Eadamk@cpan.orgE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Marcel GrEnauer Emarcel@cpan.orgE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Ran Eilam Eeilara@cpan.orgE |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 COPYRIGHT |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Copyright 2001 by Marcel GrEnauer |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Some parts copyright 2009 - 2011 Adam Kennedy. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
73
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |