Record Class ReviewAgentSpi.ReviewContext
java.lang.Object
java.lang.Record
com.tnsai.quality.security.harness.ReviewAgentSpi.ReviewContext
- Record Components:
projectRoot- absolute path to the project root being reviewedfileContent- UTF-8 content offile.path()relative toprojectRoot; provided here so backends don't re-read diskconfig- free-form configuration ("max-tokens","temperature", …); nevernull
- Enclosing interface:
ReviewAgentSpi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileContentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectRootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReviewContext
Creates an instance of aReviewContextrecord class.- Parameters:
projectRoot- the value for theprojectRootrecord componentfileContent- the value for thefileContentrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
projectRoot
Returns the value of theprojectRootrecord component.- Returns:
- the value of the
projectRootrecord component
-
fileContent
Returns the value of thefileContentrecord component.- Returns:
- the value of the
fileContentrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-