Record Class Reference
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.references.model.Reference
- Record Components:
from- Символ, в котором располагается данная ссылка.symbol- Символ, на который указывает ссылка.uri- URI, в котором находится ссылка.selectionRange- Диапазон, в котором располагается ссылка.occurrenceType- Тип обращения к символу в ссылке.
public record Reference(SourceDefinedSymbol from, Symbol symbol, URI uri, Range selectionRange, OccurrenceType occurrenceType)
extends Record
Ссылка на символ.
-
Constructor Summary
ConstructorsConstructorDescriptionReference(SourceDefinedSymbol from, Symbol symbol, URI uri, Range selectionRange, OccurrenceType occurrenceType) Creates an instance of aReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theoccurrenceTyperecord component.static Referenceof(SourceDefinedSymbol from, Symbol symbol, Location location) static Referenceof(SourceDefinedSymbol from, Symbol symbol, Location location, OccurrenceType occurrenceType) Returns the value of theselectionRangerecord 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.
-
Constructor Details
-
Reference
public Reference(SourceDefinedSymbol from, Symbol symbol, URI uri, Range selectionRange, OccurrenceType occurrenceType) Creates an instance of aReferencerecord class.- Parameters:
from- the value for thefromrecord componentsymbol- the value for thesymbolrecord componenturi- the value for theurirecord componentselectionRange- the value for theselectionRangerecord componentoccurrenceType- the value for theoccurrenceTyperecord component
-
-
Method Details
-
getSourceDefinedSymbol
-
isSourceDefinedSymbolReference
public boolean isSourceDefinedSymbolReference() -
toLocation
-
of
-
of
public static Reference of(SourceDefinedSymbol from, Symbol symbol, Location location, OccurrenceType occurrenceType) -
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). -
from
-
symbol
-
uri
-
selectionRange
Returns the value of theselectionRangerecord component.- Returns:
- the value of the
selectionRangerecord component
-
occurrenceType
Returns the value of theoccurrenceTyperecord component.- Returns:
- the value of the
occurrenceTyperecord component
-