public static enum SplitFunctionTokenizer.SplitResult extends Enum<SplitFunctionTokenizer.SplitResult>
SplitFunctionTokenizer.SplitType
and a Token.TokenType
. The TokenType of some
SplitResult values are ignored and so not every combination of SplitType and
TokenType is provided. For example, SplitFunctionTokenizer.SplitType.SPLIT_AT
and
SplitFunctionTokenizer.SplitType.SPLIT_BEFORE
(as described above) create tokens whose types have
already been determined.Modifier and Type | Field and Description |
---|---|
SplitFunctionTokenizer.SplitType |
splitType |
Token.TokenType |
tokenType |
Modifier and Type | Method and Description |
---|---|
static SplitFunctionTokenizer.SplitResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SplitFunctionTokenizer.SplitResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_WORD
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_NGRAM
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_PUNCTUATION
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_WHITESPACE
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_PREFIX
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_SUFFIX
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_INFIX
public static final SplitFunctionTokenizer.SplitResult NO_SPLIT_UNKNOWN
public static final SplitFunctionTokenizer.SplitResult SPLIT_AT
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_WORD
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_NGRAM
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_PUNCTUATION
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_WHITESPACE
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_PREFIX
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_SUFFIX
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_INFIX
public static final SplitFunctionTokenizer.SplitResult SPLIT_AFTER_UNKNOWN
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_WORD
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_NGRAM
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_PUNCTUATION
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_WHITESPACE
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_PREFIX
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_SUFFIX
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_INFIX
public static final SplitFunctionTokenizer.SplitResult SPLIT_BEFORE_AND_AFTER_UNKNOWN
public final SplitFunctionTokenizer.SplitType splitType
public final Token.TokenType tokenType
public static SplitFunctionTokenizer.SplitResult[] values()
for (SplitFunctionTokenizer.SplitResult c : SplitFunctionTokenizer.SplitResult.values()) System.out.println(c);
public static SplitFunctionTokenizer.SplitResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.