Record Class SymbolTextResultDto
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.dto.SymbolTextResultDto
- Record Components:
file- Путь к файлу.matchesCount- Количество найденных символов.matches- Найденные символы в порядке объявления.
public record SymbolTextResultDto(String file, int matchesCount, List<SymbolTextDto> matches)
extends Record
Ответ MCP-инструмента
symbol_text.-
Constructor Summary
ConstructorsConstructorDescriptionSymbolTextResultDto(String file, int matchesCount, List<SymbolTextDto> matches) Creates an instance of aSymbolTextResultDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.matches()Returns the value of thematchesrecord component.intReturns the value of thematchesCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolTextResultDto
Creates an instance of aSymbolTextResultDtorecord class.- Parameters:
file- the value for thefilerecord componentmatchesCount- the value for thematchesCountrecord componentmatches- the value for thematchesrecord 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
-
matchesCount
public int matchesCount()Returns the value of thematchesCountrecord component.- Returns:
- the value of the
matchesCountrecord component
-
matches
-