Record Class DocumentHighlightSupplier.TerminalNodeInfo
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.documenthighlight.DocumentHighlightSupplier.TerminalNodeInfo
- Record Components:
terminalNode- найденный терминальный узелtokenType- тип токена
- Enclosing interface:
DocumentHighlightSupplier
public static record DocumentHighlightSupplier.TerminalNodeInfo(TerminalNode terminalNode, int tokenType)
extends Record
Информация о терминальном узле на позиции курсора.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalNodeInfo(TerminalNode terminalNode, int tokenType) Creates an instance of aTerminalNodeInforecord 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.Returns the value of theterminalNoderecord component.intReturns the value of thetokenTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TerminalNodeInfo
Creates an instance of aTerminalNodeInforecord class.- Parameters:
terminalNode- the value for theterminalNoderecord componenttokenType- the value for thetokenTyperecord 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. -
terminalNode
Returns the value of theterminalNoderecord component.- Returns:
- the value of the
terminalNoderecord component
-
tokenType
-