java.lang.Object
java.lang.Record
org.aya.ide.action.InlayHints.Hint
- Enclosing class:
InlayHints
public static record InlayHints.Hint(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.pretty.doc.Doc doc, boolean isType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHint(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.pretty.doc.Doc doc, boolean isType) Creates an instance of aHintrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.pretty.doc.Docdoc()Returns the value of thedocrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisType()Returns the value of theisTyperecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hint
public Hint(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.pretty.doc.Doc doc, boolean isType) Creates an instance of aHintrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentdoc- the value for thedocrecord componentisType- the value for theisTyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Returns:
- the value of the
sourcePosrecord component
-
doc
@NotNull public @NotNull org.aya.pretty.doc.Doc doc()Returns the value of thedocrecord component.- Returns:
- the value of the
docrecord component
-
isType
public boolean isType()Returns the value of theisTyperecord component.- Returns:
- the value of the
isTyperecord component
-