Record Class AnalyzeFileTool.Result
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.tools.AnalyzeFileTool.Result
- Record Components:
file- Путь к проанализированному файлу.diagnosticsCount- Количество найденных замечаний.diagnostics- Список замечаний.
- Enclosing class:
AnalyzeFileTool
public static record AnalyzeFileTool.Result(String file, int diagnosticsCount, List<DiagnosticDto> diagnostics)
extends Record
Результат анализа файла.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(String file, int diagnosticsCount, List<DiagnosticDto> diagnostics) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediagnosticsrecord component.intReturns the value of thediagnosticsCountrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
file- the value for thefilerecord componentdiagnosticsCount- the value for thediagnosticsCountrecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
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. -
file
-
diagnosticsCount
public int diagnosticsCount()Returns the value of thediagnosticsCountrecord component.- Returns:
- the value of the
diagnosticsCountrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-