Record Class SemanticTokenEntry
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.semantictokens.SemanticTokenEntry
- Record Components:
line- Номер строки токена (0-индексированный)start- Начальная позиция токена в строке (0-индексированная)length- Длина токена в символахtype- Индекс типа токена в легендеmodifiers- Битовая маска модификаторов токена
public record SemanticTokenEntry(int line, int start, int length, int type, int modifiers)
extends Record
Запись для хранения информации о семантическом токене.
Содержит позицию токена в документе, его длину, тип и модификаторы.
Индексы типов и модификаторов соответствуют легенде семантических токенов
SemanticTokensLegend.
-
Constructor Summary
ConstructorsConstructorDescriptionSemanticTokenEntry(int line, int start, int length, int type, int modifiers) Creates an instance of aSemanticTokenEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.intline()Returns the value of thelinerecord component.intReturns the value of themodifiersrecord component.intstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Constructor Details
-
SemanticTokenEntry
public SemanticTokenEntry(int line, int start, int length, int type, int modifiers) Creates an instance of aSemanticTokenEntryrecord class.
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
line
-
start
-
length
-
type
-
modifiers
-