Record Class AstTokenInfo
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.semantictokens.strings.AstTokenInfo
- Record Components:
type- тип семантического токена (из SemanticTokenTypes)modifiers- модификаторы токена (из SemanticTokenModifiers)overrideLength- если > 0, используется вместо длины лексерного токена
-
Constructor Summary
ConstructorsConstructorDescriptionAstTokenInfo(String type, String[] modifiers) Создаёт информацию о токене без переопределения длины.AstTokenInfo(String type, String[] modifiers, int overrideLength) Creates an instance of aAstTokenInforecord 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.String[]Returns the value of themodifiersrecord component.intReturns the value of theoverrideLengthrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AstTokenInfo
-
AstTokenInfo
Creates an instance of aAstTokenInforecord class.- Parameters:
type- the value for thetyperecord componentmodifiers- the value for themodifiersrecord componentoverrideLength- the value for theoverrideLengthrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
-
modifiers
-
overrideLength
public int overrideLength()Returns the value of theoverrideLengthrecord component.- Returns:
- the value of the
overrideLengthrecord component
-