Record Class McpCodeGuardrailViolation
java.lang.Object
java.lang.Record
com.shaft.mcp.McpCodeGuardrailViolation
- Record Components:
kind- stable violation kindseverity- ERROR for blocking findings, WARNING for advisory findingsmessage- safe human-readable messageline- one-based line number, or 0 when unavailablesnippet- short source excerpt
-
Constructor Summary
ConstructorsConstructorDescriptionMcpCodeGuardrailViolation(String kind, String severity, String message, int line, String snippet) Creates an immutable guardrail violation. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.intline()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.severity()Returns the value of theseverityrecord component.snippet()Returns the value of thesnippetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpCodeGuardrailViolation
-
-
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. -
kind
-
severity
-
message
-
line
-
snippet
-