java.lang.Object
java.lang.Record
org.aya.tyck.pat.PatTycker.PatResult
- Enclosing class:
PatTycker
public static record PatTycker.PatResult(@NotNull Term result, @NotNull kala.collection.immutable.ImmutableSeq<Pat.Preclause<Term>> clauses, @NotNull kala.collection.immutable.ImmutableSeq<Term.Matching> matchings, boolean hasLhsError)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPatResult(@NotNull Term result, @NotNull kala.collection.immutable.ImmutableSeq<Pat.Preclause<Term>> clauses, @NotNull kala.collection.immutable.ImmutableSeq<Term.Matching> matchings, boolean hasLhsError) Creates an instance of aPatResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<Pat.Preclause<Term>>clauses()Returns the value of theclausesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasLhsErrorrecord component.@NotNull kala.collection.immutable.ImmutableSeq<Term.Matching>Returns the value of thematchingsrecord component.@NotNull Termresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatResult
public PatResult(@NotNull @NotNull Term result, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Pat.Preclause<Term>> clauses, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Term.Matching> matchings, boolean hasLhsError) Creates an instance of aPatResultrecord class.- Parameters:
result- the value for theresultrecord componentclauses- the value for theclausesrecord componentmatchings- the value for thematchingsrecord componenthasLhsError- the value for thehasLhsErrorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
clauses
Returns the value of theclausesrecord component.- Returns:
- the value of the
clausesrecord component
-
matchings
Returns the value of thematchingsrecord component.- Returns:
- the value of the
matchingsrecord component
-
hasLhsError
public boolean hasLhsError()Returns the value of thehasLhsErrorrecord component.- Returns:
- the value of the
hasLhsErrorrecord component
-