java.lang.Object
java.lang.Record
org.aya.cli.literate.HighlightInfo.Err
- All Implemented Interfaces:
Comparable<HighlightInfo>,HighlightInfo
- Enclosing interface:
HighlightInfo
public static record HighlightInfo.Err(@NotNull org.aya.util.reporter.Problem problem, @NotNull kala.collection.immutable.ImmutableSeq<HighlightInfo> children)
extends Record
implements HighlightInfo
-
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
ConstructorsConstructorDescriptionErr(@NotNull org.aya.util.reporter.Problem problem, @NotNull kala.collection.immutable.ImmutableSeq<HighlightInfo> children) Creates an instance of aErrrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<HighlightInfo> children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.util.reporter.Problemproblem()Returns the value of theproblemrecord component.@NotNull org.aya.util.error.SourcePosfinal 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
-
Err
public Err(@NotNull @NotNull org.aya.util.reporter.Problem problem, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<HighlightInfo> children) Creates an instance of aErrrecord class.- Parameters:
problem- the value for theproblemrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()- Specified by:
sourcePosin interfaceHighlightInfo
-
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). -
problem
@NotNull public @NotNull org.aya.util.reporter.Problem problem()Returns the value of theproblemrecord component.- Returns:
- the value of the
problemrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-