Record Class CaptureTargetInsertionPlan
java.lang.Object
java.lang.Record
com.shaft.capture.generate.CaptureTargetInsertionPlan
- Record Components:
targetSource- existing source file selected by the userinsertAfter- insertion anchor supplied by the userimports- imports required by locator or action snippetslocatorFields- locator fields copied from generated sourceactionSnippet- generated action lines for the target methodplacement- human-readable placement guidanceanchorFound- whether the target source contains the supplied anchorwarnings- safe validation warnings
public record CaptureTargetInsertionPlan(Path targetSource, String insertAfter, List<String> imports, String locatorFields, String actionSnippet, String placement, boolean anchorFound, List<String> warnings)
extends Record
Focused record-at-target insertion snippets derived from generated Capture source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionSnippetrecord component.booleanReturns the value of theanchorFoundrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imports()Returns the value of theimportsrecord component.Returns the value of theinsertAfterrecord component.Returns the value of thelocatorFieldsrecord component.Returns the value of theplacementrecord component.Returns the value of thetargetSourcerecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
CaptureTargetInsertionPlan
-
-
Method Details
-
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. -
targetSource
Returns the value of thetargetSourcerecord component.- Returns:
- the value of the
targetSourcerecord component
-
insertAfter
Returns the value of theinsertAfterrecord component.- Returns:
- the value of the
insertAfterrecord component
-
imports
-
locatorFields
Returns the value of thelocatorFieldsrecord component.- Returns:
- the value of the
locatorFieldsrecord component
-
actionSnippet
Returns the value of theactionSnippetrecord component.- Returns:
- the value of the
actionSnippetrecord component
-
placement
-
anchorFound
public boolean anchorFound()Returns the value of theanchorFoundrecord component.- Returns:
- the value of the
anchorFoundrecord component
-
warnings
-