Record Class QueryContext
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.semantictokens.strings.QueryContext
- Record Components:
sdblTokensByLine- токены SDBL, сгруппированные по номеру строкиastTokenOverrides- переопределения типов токенов на основе ASTskipPositions- позиции токенов, которые нужно пропустить при обработке
public record QueryContext(Map<Integer, List<Token>> sdblTokensByLine, Map<TokenPosition, AstTokenInfo> astTokenOverrides, Set<TokenPosition> skipPositions)
extends Record
Контекст для строк, содержащих запросы SDBL.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryContext(Map<Integer, List<Token>> sdblTokensByLine, Map<TokenPosition, AstTokenInfo> astTokenOverrides, Set<TokenPosition> skipPositions) Creates an instance of aQueryContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theastTokenOverridesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesdblTokensByLinerecord component.Returns the value of theskipPositionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryContext
public QueryContext(Map<Integer, List<Token>> sdblTokensByLine, Map<TokenPosition, AstTokenInfo> astTokenOverrides, Set<TokenPosition> skipPositions) Creates an instance of aQueryContextrecord class.- Parameters:
sdblTokensByLine- the value for thesdblTokensByLinerecord componentastTokenOverrides- the value for theastTokenOverridesrecord componentskipPositions- the value for theskipPositionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
sdblTokensByLine
Returns the value of thesdblTokensByLinerecord component.- Returns:
- the value of the
sdblTokensByLinerecord component
-
astTokenOverrides
Returns the value of theastTokenOverridesrecord component.- Returns:
- the value of the
astTokenOverridesrecord component
-
skipPositions
Returns the value of theskipPositionsrecord component.- Returns:
- the value of the
skipPositionsrecord component
-