Record Class SymbolOccurrence
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.references.model.SymbolOccurrence
- Record Components:
occurrenceType- Тип обращения к символу.symbol- Символ, к которому происходит обращение.location- Месторасположение обращения к символу.
- All Implemented Interfaces:
Comparable<SymbolOccurrence>
public record SymbolOccurrence(OccurrenceType occurrenceType, Symbol symbol, Location location)
extends Record
implements Comparable<SymbolOccurrence>
Обращение к символу в файле.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSymbolOccurrence(OccurrenceType occurrenceType, Symbol symbol, Location location) Creates an instance of aSymbolOccurrencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()intcompareTo(SymbolOccurrence other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of theoccurrenceTyperecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolOccurrence
Creates an instance of aSymbolOccurrencerecord class.- Parameters:
occurrenceType- the value for theoccurrenceTyperecord componentsymbol- the value for thesymbolrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<SymbolOccurrence>
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
occurrenceType
Returns the value of theoccurrenceTyperecord component.- Returns:
- the value of the
occurrenceTyperecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-