| Package | Description |
|---|---|
| net.sf.expectit |
Classes for implementing expect-like functionality.
|
| net.sf.expectit.filter |
Classes for filtering input before passing it further for matching.
|
| Modifier and Type | Method and Description |
|---|---|
ExpectBuilder |
ExpectBuilder.withInputFilters(Filter filter,
Filter... moreFilters)
Sets a filter for the input.
|
ExpectBuilder |
ExpectBuilder.withInputFilters(Filter filter,
Filter... moreFilters)
Sets a filter for the input.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FilterAdapter
A default filter implementation which does not modify the input.
|
| Modifier and Type | Method and Description |
|---|---|
static Filter |
Filters.chain(Filter... filters)
Combines the filters in a filter chain.
|
static Filter |
Filters.removeColors()
Creates a filter which removes ANSI
escape sequences for colors in the input.
|
static Filter |
Filters.removeNonPrintable()
Creates a filter which removes all the non-printable characters matching
Filters.NON_PRINTABLE_PATTERN in the
input string. |
static Filter |
Filters.replaceInBuffer(Pattern regexp,
String replacement)
Creates a filter which replaces every substring in the input buffer that matches the given
regular expression
and replaces it with given replacement.
|
static Filter |
Filters.replaceInBuffer(String regexp,
String replacement)
Equivalent to
Filters.replaceInBuffer(java.util.regex.Pattern,
String) but takes the regular expression
as string. |
static Filter |
Filters.replaceInString(Pattern regexp,
String replacement)
Equivalent to
Filters.replaceInString(java.util.regex.Pattern,
String, int) but takes the regular expression
as string and default overlap in 80 characters. |
static Filter |
Filters.replaceInString(Pattern regexp,
String replacement,
int overlap)
Creates a filter which replaces every substring in the input string that matches the given
regular expression
and replaces it with given replacement.
|
static Filter |
Filters.replaceInString(String regexp,
String replacement)
Equivalent to
Filters.replaceInString(java.util.regex.Pattern,
String) but takes the regular expression
as string and default overlap in 80 characters. |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
Filters.chain(Filter... filters)
Combines the filters in a filter chain.
|
Copyright © 2014–2018 Alexey Gavrilov and contributors. All rights reserved.