line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Embedix::ECD::Component; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
29
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
213
|
|
4
|
5
|
|
|
5
|
|
29
|
use vars qw(@ISA); |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
226
|
|
5
|
5
|
|
|
5
|
|
3265
|
use Embedix::ECD::Util qw(indent %default @attribute_order); |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
1489
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
@ISA = qw(Embedix::ECD); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# I imagine different types of ECD nodes may have different attributes. |
10
|
|
|
|
|
|
|
# I hope I'm right. |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# |
13
|
|
|
|
|
|
|
#_______________________________________ |
14
|
|
|
|
|
|
|
sub toString { |
15
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
16
|
0
|
|
|
|
|
|
my $opt = $self->getFormatOptions(@_); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
return |
19
|
0
|
|
|
|
|
|
$opt->{space} . "name . ">\n" . |
20
|
|
|
|
|
|
|
$self->attributeToString($opt) . # for the attributes |
21
|
|
|
|
|
|
|
$self->SUPER::toString(@_) . # for the children |
22
|
|
|
|
|
|
|
$opt->{space} . "\n" |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |