Record Class McpCaptureReplayResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpCaptureReplayResult
- Record Components:
sourcePath- generated source pathtestDataPath- generated test-data pathreportPath- generation report pathreviewPath- deterministic review pathsuccessful- whether generation and requested validations passedcodeBlocks- copy-paste blocks extracted from generated outputreport- deterministic generation reportwarnings- safe warnings
public record McpCaptureReplayResult(Path sourcePath, Path testDataPath, Path reportPath, Path reviewPath, boolean successful, List<McpCodeBlock> codeBlocks, com.shaft.capture.generate.CaptureGenerationReport report, List<String> warnings)
extends Record
MCP result for Capture generation, replay, and reusable code snippets.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpCaptureReplayResult(Path sourcePath, Path testDataPath, Path reportPath, Path reviewPath, boolean successful, List<McpCodeBlock> codeBlocks, com.shaft.capture.generate.CaptureGenerationReport report, List<String> warnings) Creates an immutable capture replay result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeBlocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.shaft.capture.generate.CaptureGenerationReportreport()Returns the value of thereportrecord component.Returns the value of thereportPathrecord component.Returns the value of thereviewPathrecord component.Returns the local Capture workbench HTML path beside the review artifact.Returns the value of thesourcePathrecord component.booleanReturns the value of thesuccessfulrecord component.Returns the value of thetestDataPathrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpCaptureReplayResult
-
-
Method Details
-
reviewUiPath
Returns the local Capture workbench HTML path beside the review artifact.- Returns:
- review UI path
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
testDataPath
Returns the value of thetestDataPathrecord component.- Returns:
- the value of the
testDataPathrecord component
-
reportPath
Returns the value of thereportPathrecord component.- Returns:
- the value of the
reportPathrecord component
-
reviewPath
Returns the value of thereviewPathrecord component.- Returns:
- the value of the
reviewPathrecord component
-
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
codeBlocks
Returns the value of thecodeBlocksrecord component.- Returns:
- the value of the
codeBlocksrecord component
-
report
-
warnings
-