java.lang.Object
java.lang.Record
org.aya.tyck.pat.PatClassifier
public record PatClassifier(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourcePos pos, @NotNull TyckState state, PatTree.Builder builder)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPatClassifier(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourcePos pos, @NotNull TyckState state, PatTree.Builder builder) Creates an instance of aPatClassifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thebuilderrecord component.static @NotNull org.aya.util.tyck.MCT<Term,PatClassifier.PatErr> classify(@NotNull kala.collection.SeqLike<? extends @NotNull Pat.Preclause<?>> clauses, @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> telescope, @NotNull Tycker tycker, @NotNull org.aya.util.error.SourcePos pos) static @NotNull org.aya.util.tyck.MCT<Term,PatClassifier.PatErr> classify(@NotNull kala.collection.SeqLike<? extends @NotNull Pat.Preclause<?>> clauses, @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> telescope, @NotNull TyckState state, @NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourcePos pos) static voidconfluence(PatTycker.PatResult clauses, @NotNull ExprTycker tycker, @NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.util.tyck.MCT<Term, PatClassifier.PatErr> mct) final booleanIndicates whether some other object is "equal to" this one.static int[]firstMatchDomination(@NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses, @NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.tyck.MCT<Term, PatClassifier.PatErr> mct) final inthashCode()Returns a hash code value for this object.@NotNull org.aya.util.error.SourcePospos()Returns the value of theposrecord component.@NotNull org.aya.util.reporter.Reporterreporter()Returns the value of thereporterrecord component.@NotNull TyckStatestate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatClassifier
public PatClassifier(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull TyckState state, @NotNull PatTree.Builder builder) Creates an instance of aPatClassifierrecord class.- Parameters:
reporter- the value for thereporterrecord componentpos- the value for theposrecord componentstate- the value for thestaterecord componentbuilder- the value for thebuilderrecord component
-
-
Method Details
-
classify
@NotNull public static @NotNull org.aya.util.tyck.MCT<Term,PatClassifier.PatErr> classify(@NotNull @NotNull kala.collection.SeqLike<? extends @NotNull Pat.Preclause<?>> clauses, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> telescope, @NotNull @NotNull Tycker tycker, @NotNull @NotNull org.aya.util.error.SourcePos pos) -
classify
@VisibleForTesting @NotNull public static @NotNull org.aya.util.tyck.MCT<Term,PatClassifier.PatErr> classify(@NotNull @NotNull kala.collection.SeqLike<? extends @NotNull Pat.Preclause<?>> clauses, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> telescope, @NotNull @NotNull TyckState state, @NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourcePos pos) -
firstMatchDomination
public static int[] firstMatchDomination(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses, @NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.tyck.MCT<Term, PatClassifier.PatErr> mct) -
confluence
public static void confluence(@NotNull PatTycker.PatResult clauses, @NotNull @NotNull ExprTycker tycker, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.util.tyck.MCT<Term, PatClassifier.PatErr> mct) -
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). -
reporter
@NotNull public @NotNull org.aya.util.reporter.Reporter reporter()Returns the value of thereporterrecord component.- Returns:
- the value of the
reporterrecord component
-
pos
@NotNull public @NotNull org.aya.util.error.SourcePos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
builder
Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord component
-