Record Class IntBasedSymbolOccurrence
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.references.model.IntBasedSymbolOccurrence
- Record Components:
occurrenceType- Тип обращения к символу.symbol- Символ, к которому происходит обращение.uri- URI файла, в котором расположено обращение.startLine- Строка начала обращения.startCharacter- Столбец начала обращения.endLine- Строка конца обращения.endCharacter- Столбец конца обращения.
- All Implemented Interfaces:
SymbolOccurrence, Comparable<SymbolOccurrence>
public record IntBasedSymbolOccurrence(OccurrenceType occurrenceType, Symbol symbol, URI uri, int startLine, int startCharacter, int endLine, int endCharacter)
extends Record
implements SymbolOccurrence
Реализация
SymbolOccurrence с координатами диапазона в int.
Используется для файлов, где строка или столбец не укладываются в short.
Обычно создаётся через фабрику SymbolOccurrence.of(OccurrenceType, Symbol, URI, Range).
-
Field Summary
Fields inherited from interface SymbolOccurrence
COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionIntBasedSymbolOccurrence(OccurrenceType occurrenceType, Symbol symbol, URI uri, int startLine, int startCharacter, int endLine, int endCharacter) Creates an instance of aIntBasedSymbolOccurrencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theendCharacterrecord component.intendLine()Returns the value of theendLinerecord 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 theoccurrenceTyperecord component.intReturns the value of thestartCharacterrecord component.intReturns the value of thestartLinerecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.Methods inherited from interface SymbolOccurrence
compareTo, range, startPosition
-
Constructor Details
-
IntBasedSymbolOccurrence
public IntBasedSymbolOccurrence(OccurrenceType occurrenceType, Symbol symbol, URI uri, int startLine, int startCharacter, int endLine, int endCharacter) Creates an instance of aIntBasedSymbolOccurrencerecord class.- Parameters:
occurrenceType- the value for theoccurrenceTyperecord componentsymbol- the value for thesymbolrecord componenturi- the value for theurirecord componentstartLine- the value for thestartLinerecord componentstartCharacter- the value for thestartCharacterrecord componentendLine- the value for theendLinerecord componentendCharacter- the value for theendCharacterrecord 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. -
occurrenceType
Returns the value of theoccurrenceTyperecord component.- Specified by:
occurrenceTypein interfaceSymbolOccurrence- Returns:
- the value of the
occurrenceTyperecord component
-
symbol
Returns the value of thesymbolrecord component.- Specified by:
symbolin interfaceSymbolOccurrence- Returns:
- the value of the
symbolrecord component
-
uri
Returns the value of theurirecord component.- Specified by:
uriin interfaceSymbolOccurrence- Returns:
- the value of the
urirecord component
-
startLine
public int startLine()Returns the value of thestartLinerecord component.- Specified by:
startLinein interfaceSymbolOccurrence- Returns:
- the value of the
startLinerecord component
-
startCharacter
public int startCharacter()Returns the value of thestartCharacterrecord component.- Specified by:
startCharacterin interfaceSymbolOccurrence- Returns:
- the value of the
startCharacterrecord component
-
endLine
public int endLine()Returns the value of theendLinerecord component.- Specified by:
endLinein interfaceSymbolOccurrence- Returns:
- the value of the
endLinerecord component
-
endCharacter
public int endCharacter()Returns the value of theendCharacterrecord component.- Specified by:
endCharacterin interfaceSymbolOccurrence- Returns:
- the value of the
endCharacterrecord component
-