java.lang.Object
java.lang.Record
org.aya.tyck.trace.Trace.PatT
- 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 Patternpat()Returns the value of thepatrecord component.@NotNull org.aya.util.error.SourcePospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Termtype()Returns the value of thetyperecord component.
-
Constructor Details
-
PatT
-
PatT
public PatT(@NotNull @NotNull Term type, @NotNull @NotNull Pattern pat, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull kala.collection.mutable.MutableList<@NotNull Trace> children) Creates an instance of aPatTrecord class.- Parameters:
type- the value for thetyperecord componentpat- the value for thepatrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
pat
Returns the value of thepatrecord component.- Returns:
- the value of the
patrecord 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
-