java.lang.Object
java.lang.Record
org.aya.tyck.trace.Trace.UnifyT
- 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
ConstructorsConstructorDescriptionUnifyT(@NotNull Term lhs, @NotNull Term rhs, @NotNull org.aya.util.error.SourcePos pos, @Nullable Term type) UnifyT(@NotNull Term lhs, @NotNull Term rhs, @NotNull org.aya.util.error.SourcePos pos, @Nullable Term type, @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aUnifyTrecord class. -
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 Termlhs()Returns the value of thelhsrecord component.@NotNull org.aya.util.error.SourcePospos()Returns the value of theposrecord component.@NotNull Termrhs()Returns the value of therhsrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Termtype()Returns the value of thetyperecord component.
-
Constructor Details
-
UnifyT
-
UnifyT
-
UnifyT
public UnifyT(@NotNull @NotNull Term lhs, @NotNull @NotNull Term rhs, @NotNull @NotNull org.aya.util.error.SourcePos pos, @Nullable @Nullable Term type, @NotNull @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aUnifyTrecord class.- Parameters:
lhs- the value for thelhsrecord componentrhs- the value for therhsrecord componentpos- the value for theposrecord componenttype- the value for thetyperecord 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). -
lhs
Returns the value of thelhsrecord component.- Returns:
- the value of the
lhsrecord component
-
rhs
Returns the value of therhsrecord component.- Returns:
- the value of the
rhsrecord component
-
pos
@NotNull public @NotNull org.aya.util.error.SourcePos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
children
Returns the value of thechildrenrecord component.- Specified by:
childrenin interfaceorg.aya.util.TreeBuilder.Tree<Trace>- Returns:
- the value of the
childrenrecord component
-