java.lang.Object
java.lang.Record
org.aya.tyck.pat.PatTycker.LhsResult
- Record Components:
bodySubst- we do need to replace them with the corresponding patterns, but patterns are terms (they are already well-typed if not )hasError- if there is an error in the patterns
- Enclosing class:
PatTycker
public static record PatTycker.LhsResult(@NotNull LocalCtx gamma, @NotNull Term type, @NotNull TypedSubst bodySubst, boolean hasError, Pat.Preclause<Expr> preclause)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLhsResult(@NotNull LocalCtx gamma, @NotNull Term type, @NotNull TypedSubst bodySubst, boolean hasError, Pat.Preclause<Expr> preclause) Creates an instance of aLhsResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull TypedSubstReturns the value of thebodySubstrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull LocalCtxgamma()Returns the value of thegammarecord component.booleanhasError()Returns the value of thehasErrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepreclauserecord component.final StringtoString()Returns a string representation of this record class.@NotNull Termtype()Returns the value of thetyperecord component.
-
Constructor Details
-
LhsResult
public LhsResult(@NotNull @NotNull LocalCtx gamma, @NotNull @NotNull Term type, @NotNull @NotNull TypedSubst bodySubst, boolean hasError, @NotNull Pat.Preclause<Expr> preclause) Creates an instance of aLhsResultrecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
gamma
Returns the value of thegammarecord component.- Returns:
- the value of the
gammarecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
bodySubst
Returns the value of thebodySubstrecord component.- Returns:
- the value of the
bodySubstrecord component
-
hasError
public boolean hasError()Returns the value of thehasErrorrecord component.- Returns:
- the value of the
hasErrorrecord component
-
preclause
Returns the value of thepreclauserecord component.- Returns:
- the value of the
preclauserecord component
-