public final class TokenTypeUtils extends Object
ITokenizer attributes.| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCommon(int flag)
Return
true if ITokenizer.TF_COMMON_WORD is set. |
static boolean |
isDocumentSeparator(int type)
Returns
true if the given type has ITokenizer.TF_SEPARATOR_DOCUMENT set. |
static boolean |
isFieldSeparator(int type)
Returns
true if the given type has ITokenizer.TF_SEPARATOR_FIELD set. |
static boolean |
isInQuery(int flag)
Return
true if ITokenizer.TF_QUERY_WORD is set. |
static boolean |
isTerminator(int type)
Returns
true if the given type has ITokenizer.TF_TERMINATOR set. |
static int |
maskType(int rawType)
Mask the given raw token type and leave just the token
type bits.
|
public static int maskType(int rawType)
public static boolean isDocumentSeparator(int type)
true if the given type has ITokenizer.TF_SEPARATOR_DOCUMENT set.public static boolean isFieldSeparator(int type)
true if the given type has ITokenizer.TF_SEPARATOR_FIELD set.public static boolean isTerminator(int type)
true if the given type has ITokenizer.TF_TERMINATOR set.public static boolean isCommon(int flag)
true if ITokenizer.TF_COMMON_WORD is set.public static boolean isInQuery(int flag)
true if ITokenizer.TF_QUERY_WORD is set.