org.easymock.bytebuddy.matcher.StringMatcher.Mode .
| Modifier and Type | Class and Description |
|---|---|
| public static enum | StringMatcher.
Defines the mode a |
| Modifier and Type | Field and Description |
|---|---|
| private final StringMatcher. | mode
The mode to apply for matching the given value against the matcher's input. |
| private final String | value
The text value to match against. |
| Access | Constructor and Description |
|---|---|
| public | StringMatcher(String
The value that is the base of the matching. value, StringMatcher.The mode to apply for matching the given value against the matcher's input modeCreates a new string matcher. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doMatch(String
The instance to be matched. target)Implements abstract org. null.
|
| public String |
| mode | back to summary |
|---|---|
| private final StringMatcher. The mode to apply for matching the given value against the matcher's input. | |
| value | back to summary |
|---|---|
| private final String value The text value to match against. | |
| StringMatcher | back to summary |
|---|---|
| public StringMatcher(String value, StringMatcher. Creates a new string matcher.
| |
| doMatch | back to summary |
|---|---|
| protected boolean doMatch(String target) Implements abstract org. Doc from org. Matches the supplied value if it was found not to be
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
org.easymock.bytebuddy.matcher.StringMatcher compares to strings with.
| Modifier and Type | Field and Description |
|---|---|
| public static final StringMatcher. | CONTAINS
Checks if a string contains another string with respecting casing differences. |
| public static final StringMatcher. | CONTAINS_IGNORE_CASE
Checks if a string contains another string without respecting casing differences. |
| private final String | description
A description of the string for providing meaningful |
| public static final StringMatcher. | ENDS_WITH
Checks if a string ends with a second string with respecting casing differences. |
| public static final StringMatcher. | ENDS_WITH_IGNORE_CASE
Checks if a string ends with a second string without respecting casing differences. |
| public static final StringMatcher. | EQUALS_FULLY
Checks if two strings equal and respects casing differences. |
| public static final StringMatcher. | EQUALS_FULLY_IGNORE_CASE
Checks if two strings equal without respecting casing differences. |
| public static final StringMatcher. | MATCHES
Checks if a string can be matched by a regular expression. |
| public static final StringMatcher. | STARTS_WITH
Checks if a string starts with the a second string with respecting casing differences. |
| public static final StringMatcher. | STARTS_WITH_IGNORE_CASE
Checks if a string starts with a second string without respecting casing differences. |
| Access | Constructor and Description |
|---|---|
| private | Mode(String
The description of this mode for providing meaningful description)Object#toString()
implementations.Creates a new match mode. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: The description of this match mode.Returns the description of this match mode. |
| protected abstract boolean | |
| public static StringMatcher. | |
| public static StringMatcher. |
| CONTAINS | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string contains another string with respecting casing differences. | |
| CONTAINS_IGNORE_CASE | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string contains another string without respecting casing differences. | |
| description | back to summary |
|---|---|
| private final String description A description of the string for providing meaningful | |
| ENDS_WITH | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string ends with a second string with respecting casing differences. | |
| ENDS_WITH_IGNORE_CASE | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string ends with a second string without respecting casing differences. | |
| EQUALS_FULLY | back to summary |
|---|---|
| public static final StringMatcher. Checks if two strings equal and respects casing differences. | |
| EQUALS_FULLY_IGNORE_CASE | back to summary |
|---|---|
| public static final StringMatcher. Checks if two strings equal without respecting casing differences. | |
| MATCHES | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string can be matched by a regular expression. | |
| STARTS_WITH | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string starts with the a second string with respecting casing differences. | |
| STARTS_WITH_IGNORE_CASE | back to summary |
|---|---|
| public static final StringMatcher. Checks if a string starts with a second string without respecting casing differences. | |
| Mode | back to summary |
|---|---|
| private Mode(String description) Creates a new match mode.
| |
| getDescription | back to summary |
|---|---|
| protected String getDescription() Returns the description of this match mode.
| |
| matches | back to summary |
|---|---|
| protected abstract boolean matches(String expected, String actual) Matches a string against another string. | |
| valueOf | back to summary |
|---|---|
| public static StringMatcher. | |
| values | back to summary |
|---|---|
| public static StringMatcher. | |