line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# E2::Superdoc |
2
|
|
|
|
|
|
|
# Jose M. Weeks |
3
|
|
|
|
|
|
|
# 07 August 2003 |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# See bottom for pod documentation. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package E2::Superdoc; |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
18470
|
use 5.006; |
|
2
|
|
|
|
|
44
|
|
|
2
|
|
|
|
|
81
|
|
10
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
100
|
|
11
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
59
|
|
12
|
2
|
|
|
2
|
|
10
|
use Carp; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
233
|
|
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
2
|
|
735
|
use E2::Node; |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
873
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our @ISA = "E2::Node"; |
17
|
|
|
|
|
|
|
our $VERSION = "0.34"; |
18
|
|
|
|
|
|
|
our $DEBUG; *DEBUG = *E2::Interface::DEBUG; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Prototypes |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub new; |
23
|
|
|
|
|
|
|
sub clear; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub text; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Private |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub type_as_string; |
30
|
|
|
|
|
|
|
sub twig_handlers; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Object Methods |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub new { |
35
|
1
|
|
|
1
|
1
|
98
|
my $arg = shift; |
36
|
1
|
|
33
|
|
|
10
|
my $class = ref( $arg ) || $arg; |
37
|
1
|
|
|
|
|
15
|
my $self = $class->SUPER::new(); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# See clear for the other members of $self |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
|
|
4
|
$self->clear; |
42
|
1
|
|
|
|
|
3
|
return $self; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub clear { |
46
|
3
|
50
|
|
3
|
1
|
17
|
my $self = shift or croak "Usage: clear E2SUPERDOC"; |
47
|
|
|
|
|
|
|
|
48
|
3
|
50
|
|
|
|
10
|
warn "E2::Superdoc::clear\n" if $DEBUG > 1; |
49
|
|
|
|
|
|
|
|
50
|
3
|
|
|
|
|
6
|
$self->{text} = undef; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# Now clear parent |
53
|
|
|
|
|
|
|
|
54
|
3
|
|
|
|
|
14
|
return $self->SUPER::clear; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub text { |
58
|
0
|
0
|
|
0
|
1
|
0
|
my $self = shift or croak "Usage: tetx E2SUPERDOC"; |
59
|
|
|
|
|
|
|
|
60
|
0
|
|
|
|
|
0
|
return $self->{text}; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub twig_handlers { |
64
|
1
|
50
|
|
1
|
0
|
5
|
my $self = shift or croak "Usage: twig_handlers E2SUPERDOC"; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
return ( |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
'node/superdoctext' => sub { |
69
|
0
|
|
|
0
|
|
0
|
(my $a, my $b) = @_; |
70
|
0
|
|
|
|
|
0
|
$self->{text} = $b->text; |
71
|
|
|
|
|
|
|
} |
72
|
1
|
|
|
|
|
9
|
); |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub type_as_string { |
76
|
1
|
|
|
1
|
0
|
9
|
return 'superdoc'; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; |
80
|
|
|
|
|
|
|
__END__ |