@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.963Z") @Stability(value=Stable) public class MatchResult extends software.amazon.jsii.JsiiObject
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.assertions.*; Object target; MatchResult matchResult = new MatchResult(target);
| Modifier | Constructor and Description |
|---|---|
protected |
MatchResult(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
MatchResult(software.amazon.jsii.JsiiObjectRef objRef) |
|
MatchResult(Object target) |
| Modifier and Type | Method and Description |
|---|---|
MatchResult |
compose(String id,
MatchResult inner)
Compose the results of a previous match as a subtree.
|
MatchResult |
finished()
Prepare the result to be analyzed.
|
Number |
getFailCount()
The number of failures.
|
Object |
getTarget()
The target for which this result was generated.
|
Boolean |
hasFailed()
Does the result contain any failures.
|
MatchResult |
push(Matcher matcher,
List<String> path,
String message)
Deprecated.
use recordFailure()
|
void |
recordCapture(MatchCapture options)
Record a capture against in this match result.
|
MatchResult |
recordFailure(MatchFailure failure)
Record a new failure into this result at a specific path.
|
List<String> |
toHumanStrings()
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=Stable)
public MatchResult(@NotNull
Object target)
target - This parameter is required.@Stability(value=Stable) @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=Stable) @NotNull public MatchResult finished()
This API must be called prior to analyzing these results.
@Stability(value=Stable) @NotNull public Boolean hasFailed()
If not, the result is a success
@Stability(value=Deprecated) @Deprecated @NotNull public MatchResult push(@NotNull Matcher matcher, @NotNull List<String> path, @NotNull String message)
matcher - This parameter is required.path - This parameter is required.message - This parameter is required.@Stability(value=Stable)
public void recordCapture(@NotNull
MatchCapture options)
options - This parameter is required.@Stability(value=Stable) @NotNull public MatchResult recordFailure(@NotNull MatchFailure failure)
failure - This parameter is required.@Stability(value=Stable) @NotNull public List<String> toHumanStrings()
@Stability(value=Stable) @NotNull public Number getFailCount()
@Stability(value=Stable) @NotNull public Object getTarget()
Copyright © 2022. All rights reserved.