Package org.basex.util.ft
Class Tokenizer
java.lang.Object
org.basex.util.ft.FTIterator
org.basex.util.ft.Tokenizer
- All Implemented Interfaces:
Comparable<org.basex.util.ft.LanguageImpl>,Iterator<FTSpan>
- Direct Known Subclasses:
WesternTokenizer
Abstract tokenizer.
- Author:
- BaseX Team 2005-21, BSD License, Jens Erat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intcompareTo(org.basex.util.ft.LanguageImpl o) final booleaninthashCode()protected abstract byteprec()Returns the precedence of the processor.static booleansupportFor(Language language) Checks if the language is supported by the available tokenizers.booleanChecks if the specified language is supported.Methods inherited from class org.basex.util.ft.FTIterator
init, nextToken, removeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Constructor Details
-
Tokenizer
public Tokenizer()
-
-
Method Details
-
supportFor
Checks if the language is supported by the available tokenizers.- Parameters:
language- language to be found- Returns:
- result of check
-
prec
protected abstract 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
-
supports
Checks if the specified language is supported.- Parameters:
ln- language- Returns:
- true if language is supported
-
equals
-
compareTo
public final int compareTo(org.basex.util.ft.LanguageImpl o) - Specified by:
compareToin interfaceComparable<org.basex.util.ft.LanguageImpl>
-
hashCode
public int hashCode()
-