| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 2 | ▶ | use base qw/Class::Accessor::Fast/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | 2 | __PACKAGE__->mk_accessors(qw[ input ]); | |
| 23 | |||
| 24 | =head2 next | ||
| 25 | |||
| 26 | This must be defined in a subclass | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | 0 | ▶ | sub next { die "next must be defined in a subclass" } |
|
Subroutine
next: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | =head2 close | ||
| 33 | |||
| 34 | Does nothing. | ||
| 35 | |||
| 36 | =cut | ||
| 37 | |||
| 38 | 1 | ▶ | sub close { } |
|
Subroutine
close: called CC=1 SCAR=0.0
Pod
documented
| |||
| 39 | |||
| 40 | 2 | 1; | |