java.lang.Object
java.lang.Record
org.aya.tyck.pat.ClauseTycker.Worker
- Enclosing class:
ClauseTycker
public static record ClauseTycker.Worker(@NotNull ClauseTycker parent, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars, @NotNull org.aya.syntax.core.def.Signature signature, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.Pattern.Clause> clauses, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.ref.LocalVar>> elims, boolean isFn)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWorker(@NotNull ClauseTycker parent, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars, @NotNull org.aya.syntax.core.def.Signature signature, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.Pattern.Clause> clauses, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.ref.LocalVar>> elims, boolean isFn) Creates an instance of aWorkerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ClauseTycker.TyckResultcheck(@NotNull org.aya.util.error.SourcePos overallPos) @NotNull ClauseTycker.TyckResult@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.Pattern.Clause> clauses()Returns the value of theclausesrecord component.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.ref.LocalVar>> elims()Returns the value of theelimsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFn()Returns the value of theisFnrecord component.@NotNull ClauseTyckerparent()Returns the value of theparentrecord component.@NotNull org.aya.syntax.core.def.SignatureReturns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars()Returns the value of thevarsrecord component.
-
Constructor Details
-
Worker
public Worker(@NotNull @NotNull ClauseTycker parent, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars, @NotNull @NotNull org.aya.syntax.core.def.Signature signature, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.Pattern.Clause> clauses, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.ref.LocalVar>> elims, boolean isFn) Creates an instance of aWorkerrecord class.- Parameters:
parent- the value for theparentrecord componentvars- the value for thevarsrecord componentsignature- the value for thesignaturerecord componentclauses- the value for theclausesrecord componentelims- the value for theelimsrecord componentisFn- the value for theisFnrecord component
-
-
Method Details
-
check
@NotNull public @NotNull ClauseTycker.TyckResult check(@NotNull @NotNull org.aya.util.error.SourcePos overallPos) -
checkNoClassify
-
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 '=='. -
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
vars
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.ref.LocalVar> vars()Returns the value of thevarsrecord component.- Returns:
- the value of the
varsrecord component
-
signature
@NotNull public @NotNull org.aya.syntax.core.def.Signature signature()Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
clauses
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.Pattern.Clause> clauses()Returns the value of theclausesrecord component.- Returns:
- the value of the
clausesrecord component
-
elims
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<org.aya.syntax.ref.LocalVar>> elims()Returns the value of theelimsrecord component.- Returns:
- the value of the
elimsrecord component
-
isFn
public boolean isFn()Returns the value of theisFnrecord component.- Returns:
- the value of the
isFnrecord component
-