java.lang.Object
java.lang.Record
org.aya.cli.literate.HighlightInfo.UserMeta
- All Implemented Interfaces:
Comparable<HighlightInfo>,HighlightInfo
- Enclosing interface:
HighlightInfo
public static record HighlightInfo.UserMeta(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.generic.AyaDocile hover)
extends Record
implements HighlightInfo
Usually metavariables
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.cli.literate.HighlightInfo
HighlightInfo.Def, HighlightInfo.DefKind, HighlightInfo.Err, HighlightInfo.Lit, HighlightInfo.LitKind, HighlightInfo.Ref, HighlightInfo.UserMeta -
Constructor Summary
ConstructorsConstructorDescriptionUserMeta(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.generic.AyaDocile hover) Creates an instance of aUserMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.generic.AyaDocilehover()Returns the value of thehoverrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.cli.literate.HighlightInfo
compareTo
-
Constructor Details
-
UserMeta
public UserMeta(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.generic.AyaDocile hover) Creates an instance of aUserMetarecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componenthover- the value for thehoverrecord 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). -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Specified by:
sourcePosin interfaceHighlightInfo- Returns:
- the value of the
sourcePosrecord component
-
hover
@NotNull public @NotNull org.aya.generic.AyaDocile hover()Returns the value of thehoverrecord component.- Returns:
- the value of the
hoverrecord component
-