java.lang.Object
java.lang.Record
org.aya.tyck.pat.ClauseTycker
- All Implemented Interfaces:
Problematic,Stateful
public record ClauseTycker(@NotNull ExprTycker exprTycker)
extends Record
implements Problematic, Stateful
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionClauseTycker(@NotNull ExprTycker exprTycker) Creates an instance of aClauseTyckerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<ClauseTycker.LhsResult> checkAllLhs(@Nullable kala.collection.immutable.primitive.ImmutableIntSeq indices, @NotNull org.aya.syntax.core.def.Signature signature, @NotNull kala.collection.SeqView<org.aya.syntax.concrete.Pattern.Clause> clauses, boolean isFn) @NotNull ClauseTycker.TyckResultcheckAllRhs(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars, @NotNull kala.collection.immutable.ImmutableSeq<ClauseTycker.LhsResult> lhsResults) @NotNull ClauseTycker.LhsResultcheckLhs(@NotNull org.aya.syntax.core.def.Signature signature, @Nullable kala.collection.immutable.primitive.ImmutableIntSeq indices, org.aya.syntax.concrete.Pattern.Clause clause, boolean isFn) final booleanIndicates whether some other object is "equal to" this one.@NotNull ExprTyckerReturns the value of theexprTyckerrecord component.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.util.reporter.Reporterreporter()@NotNull TyckStatestate()final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, failMethods inherited from interface org.aya.tyck.tycker.Stateful
freezeHoles, solve, whnf
-
Constructor Details
-
ClauseTycker
Creates an instance of aClauseTyckerrecord class.- Parameters:
exprTycker- the value for theexprTyckerrecord component
-
-
Method Details
-
checkAllLhs
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<ClauseTycker.LhsResult> checkAllLhs(@Nullable @Nullable kala.collection.immutable.primitive.ImmutableIntSeq indices, @NotNull @NotNull org.aya.syntax.core.def.Signature signature, @NotNull @NotNull kala.collection.SeqView<org.aya.syntax.concrete.Pattern.Clause> clauses, boolean isFn) -
checkAllRhs
@NotNull public @NotNull ClauseTycker.TyckResult checkAllRhs(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<ClauseTycker.LhsResult> lhsResults) -
reporter
@NotNull public @NotNull org.aya.util.reporter.Reporter reporter()- Specified by:
reporterin interfaceProblematic
-
state
-
checkLhs
@NotNull public @NotNull ClauseTycker.LhsResult checkLhs(@NotNull @NotNull org.aya.syntax.core.def.Signature signature, @Nullable @Nullable kala.collection.immutable.primitive.ImmutableIntSeq indices, @NotNull org.aya.syntax.concrete.Pattern.Clause clause, boolean isFn) -
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). -
exprTycker
Returns the value of theexprTyckerrecord component.- Returns:
- the value of the
exprTyckerrecord component
-