Class DescribedVariableSymbol
java.lang.Object
com.github._1c_syntax.bsl.languageserver.context.symbol.AbstractVariableSymbol
com.github._1c_syntax.bsl.languageserver.context.symbol.IntBasedVariableSymbol
com.github._1c_syntax.bsl.languageserver.context.symbol.DescribedVariableSymbol
- All Implemented Interfaces:
Describable, Exportable, SourceDefinedSymbol, Symbol, VariableSymbol, Comparable<VariableSymbol>
- Direct Known Subclasses:
AnnotatedVariableSymbol
Символ переменной с описанием. Описанных переменных малая доля, поэтому описание хранит
только этот подкласс, а не каждая переменная.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractVariableSymbol
AbstractVariableSymbol.Builder -
Field Summary
Fields inherited from interface VariableSymbol
NATURAL_ORDER -
Constructor Summary
ConstructorsConstructorDescriptionDescribedVariableSymbol(String name, SourceDefinedSymbol scope, Optional<SourceDefinedSymbol> parent, byte kind, boolean export, Optional<VariableDescription> description, int startLine, int startCharacter, int endLine, int endCharacter, int variableNameLine, int variableNameStartCharacter, int variableNameEndCharacter) -
Method Summary
Methods inherited from class IntBasedVariableSymbol
containsPosition, getRange, getVariableNameEndCharacter, getVariableNameLine, getVariableNameRange, getVariableNameStartCharacterMethods inherited from class AbstractVariableSymbol
accept, builder, getChildren, getKind, getName, getOwner, getParent, getScope, getSelectionRange, getSymbolKind, isExport, setParentMethods inherited from interface Describable
getSymbolDescriptionMethods inherited from interface SourceDefinedSymbol
getRootParent, getRootParentMethods inherited from interface Symbol
getTags, isDeprecatedMethods inherited from interface VariableSymbol
compareTo, getAnnotations
-
Constructor Details
-
DescribedVariableSymbol
public DescribedVariableSymbol(String name, SourceDefinedSymbol scope, Optional<SourceDefinedSymbol> parent, byte kind, boolean export, Optional<VariableDescription> description, int startLine, int startCharacter, int endLine, int endCharacter, int variableNameLine, int variableNameStartCharacter, int variableNameEndCharacter)
-
-
Method Details
-
getDescription
Description copied from class:AbstractVariableSymbolОписание переменной. Описана малая доля переменных, и описание хранит отдельный подкласс (DescribedVariableSymbol), а не поле каждой переменной.- Specified by:
getDescriptionin interfaceDescribable- Specified by:
getDescriptionin interfaceVariableSymbol- Overrides:
getDescriptionin classAbstractVariableSymbol- Returns:
- Описание символа в форме, поставляемой
bsl-parser'ом (используется диагностиками, которые знают конкретные подтипыMethodDescription/VariableDescriptionи т.п.).
-
toString
- Overrides:
toStringin classIntBasedVariableSymbol
-
equals
- Overrides:
equalsin classIntBasedVariableSymbol
-
canEqual
- Overrides:
canEqualin classIntBasedVariableSymbol
-
hashCode
public int hashCode()- Overrides:
hashCodein classIntBasedVariableSymbol
-