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:
  • 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 a Symbol record class.
      Parameters:
      mdoRef - the value for the mdoRef record component
      moduleType - the value for the moduleType record component
      scopeName - the value for the scopeName record component
      symbolKind - the value for the symbolKind record component
      symbolName - the value for the symbolName record component
  • Method Details

    • intern

      public Symbol intern()
    • compareTo

      public int compareTo(@Nullable Symbol other)
      Specified by:
      compareTo in interface Comparable<Symbol>
    • builder

      public static Symbol.SymbolBuilder builder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mdoRef

      public String mdoRef()
      Returns the value of the mdoRef record component.
      Returns:
      the value of the mdoRef record component
    • moduleType

      public com.github._1c_syntax.bsl.types.ModuleType moduleType()
      Returns the value of the moduleType record component.
      Returns:
      the value of the moduleType record component
    • scopeName

      public String scopeName()
      Returns the value of the scopeName record component.
      Returns:
      the value of the scopeName record component
    • symbolKind

      public SymbolKind symbolKind()
      Returns the value of the symbolKind record component.
      Returns:
      the value of the symbolKind record component
    • symbolName

      public String symbolName()
      Returns the value of the symbolName record component.
      Returns:
      the value of the symbolName record component