Record Class GlobalMemberSearchTool.Result
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.tools.GlobalMemberSearchTool.Result
- Record Components:
count- Общее количество найденных членов.functions- Глобальные функции/процедуры.properties- Глобальные свойства.enums- Системные перечисления.
- Enclosing class:
GlobalMemberSearchTool
public static record GlobalMemberSearchTool.Result(int count, List<TypeMemberDto> functions, List<TypeMemberDto> properties, List<TypeMemberDto> enums)
extends Record
Найденные члены глобального контекста, сгруппированные по категории. Категории, не запрошенные
через
categories, представлены пустыми списками. Внутри категории — по убыванию
релевантности к query (или по имени, если запрос не задан).-
Constructor Summary
ConstructorsConstructorDescriptionResult(int count, List<TypeMemberDto> functions, List<TypeMemberDto> properties, List<TypeMemberDto> enums) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.enums()Returns the value of theenumsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(int count, List<TypeMemberDto> functions, List<TypeMemberDto> properties, List<TypeMemberDto> enums) Creates an instance of aResultrecord class.- Parameters:
count- the value for thecountrecord componentfunctions- the value for thefunctionsrecord componentproperties- the value for thepropertiesrecord componentenums- the value for theenumsrecord 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. -
count
-
functions
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
enums
-