RSLPStemmerBase.RuleWithSuffixExceptions (Lucene 10.5.1 common API)
Description: declaration: package: org.apache.lucene.analysis.pt, class: RSLPStemmerBase, class: RuleWithSuffixExceptions

Package org.apache.lucene.analysis.pt

# Class RSLPStemmerBase.RuleWithSuffixExceptions

java.lang.Object
org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule
org.apache.lucene.analysis.pt.RSLPStemmerBase.RuleWithSuffixExceptions

Enclosing class:
  `RSLPStemmerBase`

protected static class RSLPStemmerBase.RuleWithSuffixExceptions extends RSLPStemmerBase.Rule
A rule with a set of exceptional suffixes.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final char[][]`
  `exceptions`

  ### Fields inherited from class org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule

  `min, replacement, suffix`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RuleWithSuffixExceptions(String suffix, int min, String replacement, String[] exceptions)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `matches(char[] s, int len)`

  ### Methods inherited from class org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule

  `replace`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### exceptions

    protected final char[][] exceptions

- ## Constructor Details

  - ### RuleWithSuffixExceptions

    public RuleWithSuffixExceptions(String suffix, int min, String replacement, String[] exceptions)

- ## Method Details

  - ### matches

    public boolean matches(char[] s, int len)
    Overrides:
      `matches` in class `RSLPStemmerBase.Rule`
    Returns:
      true if the word matches this rule.