java.lang.Object
java.lang.Record
org.aya.tyck.trace.Trace.LabelT
- Enclosing interface:
Trace
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.tyck.trace.Trace
Trace.Builder, Trace.DeclT, Trace.ExprT, Trace.LabelT, Trace.PatT, Trace.TyckT, Trace.UnifyT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.mutable.MutableList<@NotNull Trace>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 Stringlabel()Returns the value of thelabelrecord component.@NotNull org.aya.util.error.SourcePospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LabelT
-
LabelT
public LabelT(@NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull String label, @NotNull @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aLabelTrecord class.- Parameters:
pos- the value for theposrecord componentlabel- the value for thelabelrecord 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). -
pos
@NotNull public @NotNull org.aya.util.error.SourcePos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
children
Returns the value of thechildrenrecord component.- Specified by:
childrenin interfaceorg.aya.util.TreeBuilder.Tree<Trace>- Returns:
- the value of the
childrenrecord component
-