| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebSource::Filter; |
|
2
|
1
|
|
|
1
|
|
2200
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
34
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use Carp; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
79
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
634
|
use WebSource::Module; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @ISA = ('WebSource::Module'); |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
WebSource::Format - Format XML Nodes |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
A filter operator allows to select which input elements will be returned |
|
15
|
|
|
|
|
|
|
as output or not. |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
The default filter operator is a uniquness operator. It keeps track of |
|
18
|
|
|
|
|
|
|
items which it has had as input on only returns those which have never |
|
19
|
|
|
|
|
|
|
been seen yet. |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
It is declared as follows : |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
The different current types of other operators are : |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=over 2 |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=item B : Filters elements based on a series of tests |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item B : Filters elements based on the number of times they or a |
|
32
|
|
|
|
|
|
|
parent object passed thru the filter |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item B |