java.lang.Object
java.lang.Record
org.aya.tyck.trace.Trace.DeclT
- 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 org.aya.util.error.SourcePospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.@NotNull DefVar<?,?> var()Returns the value of thevarrecord component.
-
Constructor Details
-
DeclT
-
DeclT
public DeclT(@NotNull @NotNull DefVar<?, ?> var, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aDeclTrecord class.- Parameters:
var- the value for thevarrecord componentpos- the value for theposrecord 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). -
var
Returns the value of thevarrecord component.- Returns:
- the value of the
varrecord component
-
pos
@NotNull public @NotNull org.aya.util.error.SourcePos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
children
Returns the value of thechildrenrecord component.- Specified by:
childrenin interfaceorg.aya.util.TreeBuilder.Tree<Trace>- Returns:
- the value of the
childrenrecord component
-