org.basex.util.ft
Class InternalStemmer
java.lang.Object
org.basex.util.ft.FTIterator
org.basex.util.ft.Stemmer
org.basex.util.ft.InternalStemmer
- All Implemented Interfaces:
- java.lang.Comparable<org.basex.util.ft.LanguageImpl>, java.util.Iterator<FTSpan>
- Direct Known Subclasses:
- GreekStemmer
public abstract class InternalStemmer
- extends Stemmer
Internal stemmer implementation.
The names of the implementations
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
Method Summary |
int |
compareTo(org.basex.util.ft.LanguageImpl o)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
protected byte |
prec()
Returns the precedence of the processor. |
boolean |
supports(Language ln)
Checks if the specified language is supported. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
prec
protected final byte prec()
- Returns the precedence of the processor. If two language implementations
support the same language, the processor with the higher precedence
will be selected.
- Returns:
- precedence
toString
public final java.lang.String toString()
- Overrides:
toString
in class Stemmer
supports
public boolean supports(Language ln)
- Checks if the specified language is supported.
- Parameters:
ln
- language
- Returns:
- true if language is supported
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public final int compareTo(org.basex.util.ft.LanguageImpl o)
- Specified by:
compareTo
in interface java.lang.Comparable<org.basex.util.ft.LanguageImpl>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object