Record Class SymbolTree.Basis

java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.context.symbol.SymbolTree.Basis
Record Components:
moduleType - тип модуля документа.
mdoRef - ссылка на объект метаданных документа.
bareSelfProperties - голые имена, признанные реквизитами своего типа.
loopVariables - переменные из этого же дерева, впервые объявленные заголовком цикла; снимок используется только при проверке своего дерева и не переносится в следующее.
Enclosing class:
SymbolTree

public static record SymbolTree.Basis(com.github._1c_syntax.bsl.types.ModuleType moduleType, String mdoRef, Set<String> bareSelfProperties, Set<VariableSymbol> loopVariables) extends Record
На чём, кроме текста документа, построено дерево: привязка документа к метаданным и голые имена, признанные при построении реквизитами своего типа. Символов у таких имён нет, поэтому из самого дерева их не восстановить.
  • Field Details

    • NONE

      public static final SymbolTree.Basis NONE
      Основание дерева, построенного не по документу: годным для документа такое дерево не бывает. Узнаётся по ссылке, а не по значениям полей.
  • Constructor Details

    • Basis

      public Basis(com.github._1c_syntax.bsl.types.ModuleType moduleType, String mdoRef, Set<String> bareSelfProperties, Set<VariableSymbol> loopVariables)
      Creates an instance of a Basis record class.
      Parameters:
      moduleType - the value for the moduleType record component
      mdoRef - the value for the mdoRef record component
      bareSelfProperties - the value for the bareSelfProperties record component
      loopVariables - the value for the loopVariables record component
    • Basis

      public Basis(com.github._1c_syntax.bsl.types.ModuleType moduleType, String mdoRef, Set<String> bareSelfProperties)
  • Method Details

    • 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.
    • 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
    • mdoRef

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

      public Set<String> bareSelfProperties()
      Returns the value of the bareSelfProperties record component.
      Returns:
      the value of the bareSelfProperties record component
    • loopVariables

      public Set<VariableSymbol> loopVariables()
      Returns the value of the loopVariables record component.
      Returns:
      the value of the loopVariables record component