Plucen...Filter(3pm)

πŸ“¦
version 1.25 Β· 2 versions
  • 1.25 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.25 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Plucene::Analysis::TokenFilter β€” bestie, this is the base class for token filters πŸ’… it's giving abstract, it's giving "you're gonna subclass me," and honestly? iconic.


🌸 DESCRIPTION 🌸

Okay so listen 🫢 this is an abstract base class for token filters. Like, it doesn't do the thing itself, it's the blueprint, the main character template, the vibe setter for everything that comes after it.

A TokenFilter is a TokenStream whose input is another token stream. Read that again bestie. A stream of tokens. Feeding into another stream of tokens. It's streams all the way down πŸ¦‹ no cap.


πŸ’– METHODS πŸ’–

next

This must be defined in a subclass. Periodt. Like, the parent class literally will not do it for you β€” you have to show up and write it yourself. It's giving "no one is coming to save you" energy 😭 but in a cute way. Go define it. Slay.

close

Does nothing. Truly. Nothing. Zero. It's the chillest method to ever chill 🌈 it just exists, vibing, contributing absolutely nothing to society and honestly? Respect. Let her rest πŸŽ€


Heads up bestie: if you're out here trying to call next on this base class directly without subclassing it first, that's not it. Define it in your subclass. That's the whole point of the assignment ✨

aight that's the whole page, mwah πŸ’œ

This little beauty came to you courtesy of the User Contributed Perl Documentation, sitting pretty at perl v5.36.0, dated 2022-12-04. Bye bestie, go write that subclass πŸ’…βœ¨

πŸ“¦ where this page comes from