@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.962Z") @Stability(value=Stable) public abstract class Match extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
Match() |
protected |
Match(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Match(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Matcher |
absent()
Use this matcher in the place of a field's value, if the field must not be present.
|
static Matcher |
anyValue()
Matches any non-null value at the target.
|
static Matcher |
arrayEquals(List<? extends Object> pattern)
Matches the specified pattern with the array found in the same relative path of the target.
|
static Matcher |
arrayWith(List<? extends Object> pattern)
Matches the specified pattern with the array found in the same relative path of the target.
|
static Matcher |
exact(Object pattern)
Deep exact matching of the specified pattern to the target.
|
static Matcher |
not(Object pattern)
Matches any target which does NOT follow the specified pattern.
|
static Matcher |
objectEquals(Map<String,? extends Object> pattern)
Matches the specified pattern to an object found in the same relative path of the target.
|
static Matcher |
objectLike(Map<String,? extends Object> pattern)
Matches the specified pattern to an object found in the same relative path of the target.
|
static Matcher |
serializedJson(Object pattern)
Matches any string-encoded JSON and applies the specified pattern after parsing it.
|
static Matcher |
stringLikeRegexp(String pattern)
Matches targets according to a regular expression.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Match(software.amazon.jsii.JsiiObjectRef objRef)
protected Match(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected Match()
@Stability(value=Stable) @NotNull public static Matcher absent()
@Stability(value=Stable) @NotNull public static Matcher anyValue()
@Stability(value=Stable) @NotNull public static Matcher arrayEquals(@NotNull List<? extends Object> pattern)
The set of elements (or matchers) must match exactly and in order.
pattern - the pattern to match. This parameter is required.@Stability(value=Stable) @NotNull public static Matcher arrayWith(@NotNull List<? extends Object> pattern)
The set of elements (or matchers) must be in the same order as would be found.
pattern - the pattern to match. This parameter is required.@Stability(value=Stable) @NotNull public static Matcher exact(@NotNull Object pattern)
pattern - the pattern to match. This parameter is required.@Stability(value=Stable) @NotNull public static Matcher not(@NotNull Object pattern)
pattern - the pattern to NOT match. This parameter is required.@Stability(value=Stable) @NotNull public static Matcher objectEquals(@NotNull Map<String,? extends Object> pattern)
The keys and their values (or matchers) must match exactly with the target.
pattern - the pattern to match. This parameter is required.@Stability(value=Stable) @NotNull public static Matcher objectLike(@NotNull Map<String,? extends Object> pattern)
The keys and their values (or matchers) must be present in the target but the target can be a superset.
pattern - the pattern to match. This parameter is required.@Stability(value=Stable) @NotNull public static Matcher serializedJson(@NotNull Object pattern)
pattern - the pattern to match after parsing the encoded JSON. This parameter is required.Copyright © 2022. All rights reserved.