java.lang.Object
java.lang.Record
org.aya.tyck.trace.Trace.TyckT
- 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
ConstructorsConstructorDescriptionTyckT(@NotNull Term term, @NotNull Term type, @NotNull org.aya.util.error.SourcePos pos, @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aTyckTrecord class.TyckT(ExprTycker.Result result, @NotNull org.aya.util.error.SourcePos pos) -
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.@NotNull Termterm()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Termtype()Returns the value of thetyperecord component.
-
Constructor Details
-
TyckT
-
TyckT
public TyckT(@NotNull @NotNull Term term, @NotNull @NotNull Term type, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aTyckTrecord class.- Parameters:
term- the value for thetermrecord componenttype- the value for thetyperecord 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). -
term
Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-