public static enum Highlighter.BoundaryScanner extends java.lang.Enum<Highlighter.BoundaryScanner>
| Enum Constant and Description |
|---|
CHARS
Use the characters specified by boundary_chars as highlighting boundaries.
|
SENTENCE
Break highlighted fragments at the next sentence boundary, as determined by Java’s
BreakIterator.
|
WORD
Break highlighted fragments at the next word boundary, as determined by Java’s
BreakIterator.
|
| Modifier and Type | Method and Description |
|---|---|
static Highlighter.BoundaryScanner |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Highlighter.BoundaryScanner[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Highlighter.BoundaryScanner CHARS
public static final Highlighter.BoundaryScanner WORD
public static final Highlighter.BoundaryScanner SENTENCE
public static Highlighter.BoundaryScanner[] values()
for (Highlighter.BoundaryScanner c : Highlighter.BoundaryScanner.values()) System.out.println(c);
public static Highlighter.BoundaryScanner valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null