line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#============================================================= -*-Perl-*- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Pod::POM::Nodes |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# DESCRIPTION |
6
|
|
|
|
|
|
|
# Module implementing specific nodes in a Pod::POM, subclassed from |
7
|
|
|
|
|
|
|
# Pod::POM::Node. |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# AUTHOR |
10
|
|
|
|
|
|
|
# Andy Wardley |
11
|
|
|
|
|
|
|
# Andrew Ford |
12
|
|
|
|
|
|
|
# |
13
|
|
|
|
|
|
|
# COPYRIGHT |
14
|
|
|
|
|
|
|
# Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. |
15
|
|
|
|
|
|
|
# Copyright (C) 2009 Andrew Ford. All Rights Reserved. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# This module is free software; you can redistribute it and/or |
18
|
|
|
|
|
|
|
# modify it under the same terms as Perl itself. |
19
|
|
|
|
|
|
|
# |
20
|
|
|
|
|
|
|
# REVISION |
21
|
|
|
|
|
|
|
# $Id: For.pm 89 2013-05-30 07:41:52Z ford $ |
22
|
|
|
|
|
|
|
# |
23
|
|
|
|
|
|
|
#======================================================================== |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
package Pod::POM::Node::For; |
26
|
|
|
|
|
|
|
$Pod::POM::Node::For::VERSION = '2.00'; |
27
|
|
|
|
|
|
|
require 5.006; |
28
|
18
|
|
|
18
|
|
73
|
use strict; |
|
18
|
|
|
|
|
28
|
|
|
18
|
|
|
|
|
392
|
|
29
|
18
|
|
|
18
|
|
72
|
use warnings; |
|
18
|
|
|
|
|
29
|
|
|
18
|
|
|
|
|
433
|
|
30
|
|
|
|
|
|
|
|
31
|
18
|
|
|
18
|
|
73
|
use parent qw( Pod::POM::Node ); |
|
18
|
|
|
|
|
24
|
|
|
18
|
|
|
|
|
73
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
our @ATTRIBS = ( format => undef, text => '' ); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub new { |
36
|
3
|
|
|
3
|
0
|
14
|
my $class = shift; |
37
|
3
|
|
|
|
|
15
|
my $pom = shift; |
38
|
3
|
|
|
|
|
6
|
my $text = shift; |
39
|
|
|
|
|
|
|
|
40
|
3
|
|
|
|
|
31
|
return $class->SUPER::new($pom, split(/\s+/, $text, 2)); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Pod::POM::Node::For - |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SYNOPSIS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
use Pod::POM::Nodes; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DESCRIPTION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This module implements a specialization of the node class to represent C<=for> elements. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 AUTHOR |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Andrew Ford Ea.ford@ford-mason.co.ukE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Andy Wardley Eabw@kfs.orgE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Copyright (C) 2009 Andrew Ford. All Rights Reserved. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
70
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 SEE ALSO |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Consult L for a discussion of nodes. |