public final class RegexSearchOptions extends Object
Provides the options for search with regular expressions.
Constructor and Description |
---|
RegexSearchOptions()
Initializes a new instance of the
RegexSearchOptions class. |
RegexSearchOptions(SearchHighlightOptions highlightOptions)
Initializes a new instance of the
RegexSearchOptions class. |
RegexSearchOptions(SearchHighlightOptions highlightOptions,
WordSeparators wordSeparators)
Initializes a new instance of the
RegexSearchOptions class. |
Modifier and Type | Method and Description |
---|---|
HighlightOptions |
createLeftHighlightOptions(int position)
Creates an instance of
HighlightOptions for the left highlight. |
HighlightOptions |
createRightHighlightOptions(int position)
Creates an instance of
HighlightOptions for the right highlight. |
SearchHighlightOptions |
getHighlightOptions()
Gets options of highlight.
|
WordSeparators |
getWordSeparators()
Gets an instance of
WordSeparators which is used to check separator characters. |
public RegexSearchOptions()
Initializes a new instance of the RegexSearchOptions
class.
public RegexSearchOptions(SearchHighlightOptions highlightOptions)
Initializes a new instance of the RegexSearchOptions
class.
highlightOptions
- Options of highlight.public RegexSearchOptions(SearchHighlightOptions highlightOptions, WordSeparators wordSeparators)
Initializes a new instance of the RegexSearchOptions
class.
highlightOptions
- Options of highlight.wordSeparators
- An instance of WordSeparators
.public SearchHighlightOptions getHighlightOptions()
Gets options of highlight.
public WordSeparators getWordSeparators()
Gets an instance of WordSeparators
which is used to check separator characters.
WordSeparators
.public HighlightOptions createLeftHighlightOptions(int position)
Creates an instance of HighlightOptions
for the left highlight.
position
- A zero-based position of found text.HighlightOptions
for the left highlight.public HighlightOptions createRightHighlightOptions(int position)
Creates an instance of HighlightOptions
for the right highlight.
position
- The zero-based position of the found text.HighlightOptions
for the right highlight.Copyright © 2018. All rights reserved.