line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Sub::DeferredPartial::Op::Nullary; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
13
|
use Sub::DeferredPartial(); @ISA = 'Sub::DeferredPartial'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
50
|
|
6
|
2
|
|
|
2
|
|
9
|
use Carp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
429
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
9
|
|
|
|
|
|
|
sub new |
10
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
11
|
|
|
|
|
|
|
{ |
12
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
13
|
0
|
|
|
|
|
|
my $Op = shift; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
bless { Op => $Op } => $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
18
|
|
|
|
|
|
|
sub Apply |
19
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
confess 'Apply not possible'; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
26
|
|
|
|
|
|
|
sub Eval |
27
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
28
|
|
|
|
|
|
|
{ |
29
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
return $self->{Op}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
34
|
|
|
|
|
|
|
sub Free |
35
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
36
|
|
|
|
|
|
|
{ |
37
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
return {}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
42
|
|
|
|
|
|
|
sub Describe |
43
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
44
|
|
|
|
|
|
|
{ |
45
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
return "( $self->{Op} )"; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
50
|
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 NAME |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Sub::DeferredPartial::Op::Nullary - Nullary operator (constant). |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Steffen Goeldner |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Copyright (c) 2004 Steffen Goeldner. All rights reserved. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or |
65
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |