Record Class DefinitionTool.Result
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.tools.DefinitionTool.Result
- Record Components:
file- Путь к файлу.definitions- Места объявления символа (обычно одно).
- Enclosing class:
DefinitionTool
public static record DefinitionTool.Result(String file, List<DefinitionDto> definitions)
extends Record
Результат перехода к определению.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(String file, List<DefinitionDto> definitions) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionsrecord 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 componentdefinitions- the value for thedefinitionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
file
-
definitions
Returns the value of thedefinitionsrecord component.- Returns:
- the value of the
definitionsrecord component
-