java.lang.Object
java.lang.Record
org.aya.ide.action.ProjectSymbol.Symbol
- Enclosing class:
ProjectSymbol
public static record ProjectSymbol.Symbol(@NotNull String name, @NotNull org.aya.pretty.doc.Doc description, org.aya.cli.literate.HighlightInfo.DefKind kind, @NotNull org.aya.util.error.SourcePos nameLocation, @NotNull org.aya.util.error.SourcePos entireLocation, @NotNull kala.collection.immutable.ImmutableSeq<ProjectSymbol.Symbol> children)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSymbol(@NotNull String name, @NotNull org.aya.pretty.doc.Doc description, org.aya.cli.literate.HighlightInfo.DefKind kind, @NotNull org.aya.util.error.SourcePos nameLocation, @NotNull org.aya.util.error.SourcePos entireLocation, @NotNull kala.collection.immutable.ImmutableSeq<ProjectSymbol.Symbol> children) Creates an instance of aSymbolrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<ProjectSymbol.Symbol>children()Returns the value of thechildrenrecord component.@NotNull org.aya.pretty.doc.DocReturns the value of thedescriptionrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of theentireLocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.aya.cli.literate.HighlightInfo.DefKindkind()Returns the value of thekindrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thenameLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Symbol
public Symbol(@NotNull @NotNull String name, @NotNull @NotNull org.aya.pretty.doc.Doc description, @NotNull org.aya.cli.literate.HighlightInfo.DefKind kind, @NotNull @NotNull org.aya.util.error.SourcePos nameLocation, @NotNull @NotNull org.aya.util.error.SourcePos entireLocation, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<ProjectSymbol.Symbol> children) Creates an instance of aSymbolrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentkind- the value for thekindrecord componentnameLocation- the value for thenameLocationrecord componententireLocation- the value for theentireLocationrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
@NotNull public @NotNull org.aya.pretty.doc.Doc description()Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
kind
@NotNull public org.aya.cli.literate.HighlightInfo.DefKind kind()Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
nameLocation
@NotNull public @NotNull org.aya.util.error.SourcePos nameLocation()Returns the value of thenameLocationrecord component.- Returns:
- the value of the
nameLocationrecord component
-
entireLocation
@NotNull public @NotNull org.aya.util.error.SourcePos entireLocation()Returns the value of theentireLocationrecord component.- Returns:
- the value of the
entireLocationrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-