Record Class Symbol
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.references.model.Symbol
- Record Components:
mdoRef- Ссылка на объект метаданных в формате ВидОбъектаМетаданных.ИмяОбъекта, в котором расположен символ.moduleType- Тип модуля объекта метаданных, в котором расположен символ.scopeName- Область видимости символа.symbolKind- Тип символа.symbolName- Имя символа.
- All Implemented Interfaces:
Comparable<Symbol>
public record Symbol(String mdoRef, com.github._1c_syntax.bsl.types.ModuleType moduleType, String scopeName, SymbolKind symbolKind, String symbolName)
extends Record
implements Comparable<Symbol>
Облегченные данные символа для поиска без кросс-ссылок между файлами.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSymbol(String mdoRef, com.github._1c_syntax.bsl.types.ModuleType moduleType, String scopeName, SymbolKind symbolKind, String symbolName) Creates an instance of aSymbolrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Symbol.SymbolBuilderbuilder()intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intern()mdoRef()Returns the value of themdoRefrecord component.com.github._1c_syntax.bsl.types.ModuleTypeReturns the value of themoduleTyperecord component.Returns the value of thescopeNamerecord component.Returns the value of thesymbolKindrecord component.Returns the value of thesymbolNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Symbol
public Symbol(String mdoRef, com.github._1c_syntax.bsl.types.ModuleType moduleType, String scopeName, SymbolKind symbolKind, String symbolName) Creates an instance of aSymbolrecord class.- Parameters:
mdoRef- the value for themdoRefrecord componentmoduleType- the value for themoduleTyperecord componentscopeName- the value for thescopeNamerecord componentsymbolKind- the value for thesymbolKindrecord componentsymbolName- the value for thesymbolNamerecord component
-
-
Method Details
-
intern
-
compareTo
- Specified by:
compareToin interfaceComparable<Symbol>
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
mdoRef
Returns the value of themdoRefrecord component.- Returns:
- the value of the
mdoRefrecord component
-
moduleType
public com.github._1c_syntax.bsl.types.ModuleType moduleType()Returns the value of themoduleTyperecord component.- Returns:
- the value of the
moduleTyperecord component
-
scopeName
Returns the value of thescopeNamerecord component.- Returns:
- the value of the
scopeNamerecord component
-
symbolKind
Returns the value of thesymbolKindrecord component.- Returns:
- the value of the
symbolKindrecord component
-
symbolName
Returns the value of thesymbolNamerecord component.- Returns:
- the value of the
symbolNamerecord component
-