public static enum SplitFunctionTokenizer.SplitType extends Enum<SplitFunctionTokenizer.SplitType>
Enum Constant and Description |
---|
NO_SPLIT
the current character is added to the in-progress token (i.e.
|
SPLIT_AFTER
The current character will cause the in-progress token to be completed after
the current character is appended to the in-progress token.
|
SPLIT_AT
The current character will cause the in-progress token to be completed.
|
SPLIT_BEFORE
The current character will cause the in-progress token to be completed the
current character will be included in the next token.
|
SPLIT_BEFORE_AND_AFTER
The current character should cause the in-progress token to be completed.
|
Modifier and Type | Method and Description |
---|---|
static SplitFunctionTokenizer.SplitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SplitFunctionTokenizer.SplitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SplitFunctionTokenizer.SplitType NO_SPLIT
public static final SplitFunctionTokenizer.SplitType SPLIT_AT
SplitFunctionTokenizer.SplitResult.SPLIT_AT
).
This SplitType may be useful for whitespace.public static final SplitFunctionTokenizer.SplitType SPLIT_BEFORE
SplitFunctionTokenizer.SplitResult.SPLIT_BEFORE
). This
SplitType may be useful for e.g. capitalized letters when CamelCase splitting
of digits when separating out a currency symbol.public static final SplitFunctionTokenizer.SplitType SPLIT_AFTER
SplitFunctionTokenizer.SplitResult
.public static final SplitFunctionTokenizer.SplitType SPLIT_BEFORE_AND_AFTER
SplitFunctionTokenizer.SplitResult
.public static SplitFunctionTokenizer.SplitType[] values()
for (SplitFunctionTokenizer.SplitType c : SplitFunctionTokenizer.SplitType.values()) System.out.println(c);
public static SplitFunctionTokenizer.SplitType 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.