java.lang.Object
java.lang.Record
org.aya.tyck.pat.PatternTycker.TyckResult
- Enclosing class:
PatternTycker
-
Constructor Summary
ConstructorsConstructorDescriptionTyckResult(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pat>> wellTyped, @NotNull Term codomain, @UnknownNullability Expr newBody) Creates an instance of aTyckResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Termcodomain()Returns the value of thecodomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@UnknownNullability ExprnewBody()Returns the value of thenewBodyrecord component.final StringtoString()Returns a string representation of this record class.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pat>>Returns the value of thewellTypedrecord component.
-
Constructor Details
-
TyckResult
public TyckResult(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pat>> wellTyped, @NotNull @NotNull Term codomain, @UnknownNullability Expr newBody) Creates an instance of aTyckResultrecord class.- Parameters:
wellTyped- the value for thewellTypedrecord componentcodomain- the value for thecodomainrecord componentnewBody- the value for thenewBodyrecord 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). -
wellTyped
Returns the value of thewellTypedrecord component.- Returns:
- the value of the
wellTypedrecord component
-
codomain
Returns the value of thecodomainrecord component.- Returns:
- the value of the
codomainrecord component
-
newBody
Returns the value of thenewBodyrecord component.- Returns:
- the value of the
newBodyrecord component
-