line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plucene::Analysis::TokenFilter; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Plucene::Analysis::TokenFilter - base class for token filters |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 DESCRIPTION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
This is an abstract base class for token filters. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
A TokenFilter is a TokenStream whose input is another token stream. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 METHODS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
2
|
|
1018
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
100
|
|
18
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
73
|
|
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
10
|
use base qw/Class::Accessor::Fast/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1156
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw[ input ]); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head2 next |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
This must be defined in a subclass |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
0
|
sub next { die "next must be defined in a subclass" } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 close |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Does nothing. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
1
|
1
|
894
|
sub close { } |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |