line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Config::HAProxy::Node::Statement; |
2
|
2
|
|
|
2
|
|
11
|
use parent 'Config::HAProxy::Node'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Config::HAProxy::Node::Statement - simple statement node in HAProxy tree |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 DESCRIPTION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Objects of this class represent simple statements in HAProxy configuration |
11
|
|
|
|
|
|
|
file. A C is any statement excepting: B, B, |
12
|
|
|
|
|
|
|
B, and B. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 METHODS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head2 is_statement |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Returns true. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 kw |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Returns the configuration keyword. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head2 argv |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Returns the list of arguments to the configuration keyword. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 arg |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$s = $node->arg($n) |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Returns the B<$n>th argument. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 orig |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Returns original line as it appeared in the configuration file. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 locus |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Returns the location of this statement in the configuration file (the |
41
|
|
|
|
|
|
|
B object). |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
B, B, B. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
0
|
1
|
|
sub is_statement { 1 } |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |