@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-07-09T19:17:34.231Z") @Stability(value=Experimental) public class MatchResult extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
|
MatchResult() |
protected |
MatchResult(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
MatchResult(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
MatchResult |
compose(String id,
MatchResult inner)
(experimental) Compose the results of a previous match as a subtree.
|
Number |
getFailCount()
(experimental) The number of failures.
|
Boolean |
hasFailed()
(experimental) Does the result contain any failures.
|
MatchResult |
push(Matcher matcher,
List<String> path,
String message)
(experimental) Push a new failure into this result at a specific path.
|
List<String> |
toHumanStrings()
(experimental) Get the list of failures as human readable strings.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected MatchResult(software.amazon.jsii.JsiiObjectRef objRef)
protected MatchResult(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public MatchResult()
@Stability(value=Experimental) @NotNull public MatchResult compose(@NotNull String id, @NotNull MatchResult inner)
id - the id of the parent tree. This parameter is required.inner - This parameter is required.@Stability(value=Experimental) @NotNull public Boolean hasFailed()
If not, the result is a success
@Stability(value=Experimental) @NotNull public MatchResult push(@NotNull Matcher matcher, @NotNull List<String> path, @NotNull String message)
If the failure occurred at root of the match tree, set the path to an empty list.
If it occurs in the 5th index of an array nested within the 'foo' key of an object,
set the path as ['/foo', '[5]'].
matcher - This parameter is required.path - the path at which the failure occurred. This parameter is required.message - the failure. This parameter is required.@Stability(value=Experimental) @NotNull public List<String> toHumanStrings()
@Stability(value=Experimental) @NotNull public Number getFailCount()
Copyright © 2021. All rights reserved.