Record Class Location
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.references.model.Location
- Record Components:
uri- URI файла, в котором расположен символ.startLine- Строка, в которой начинается символ.startCharacter- Столбец, в котором начинается символ.endLine- Строка, в которой заканчивается символ.endCharacter- Столбец, в котором заканчивается символ.
-
Constructor Summary
Constructors -
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.getRange()getStart()final inthashCode()Returns a hash code value for this object.intReturns the value of thestartCharacterrecord component.intReturns the value of thestartLinerecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
Location
-
Location
Creates an instance of aLocationrecord class.- Parameters:
uri- 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
-
getRange
-
getStart
-
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. -
uri
-
startLine
-
startCharacter
public int startCharacter()Returns the value of thestartCharacterrecord component.- Returns:
- the value of the
startCharacterrecord component
-
endLine
-
endCharacter
public int endCharacter()Returns the value of theendCharacterrecord component.- Returns:
- the value of the
endCharacterrecord component
-