java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Match
- All Implemented Interfaces:
Expr,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Expr>,org.aya.util.error.SourceNode
- Enclosing interface:
Expr
public static record Expr.Match(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.collection.immutable.ImmutableSeq<Expr> discriminant, @NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses)
extends Record
implements Expr
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.concrete.Expr
Expr.App, Expr.Array, Expr.BinOpSeq, Expr.Coe, Expr.Do, Expr.DoBind, Expr.Error, Expr.Field, Expr.Hole, Expr.Idiom, Expr.IdiomNames, Expr.ISet, Expr.Lambda, Expr.Let, Expr.LetBind, Expr.Lift, Expr.LitInt, Expr.LitString, Expr.Match, Expr.NamedArg, Expr.New, Expr.Param, Expr.PartEl, Expr.Path, Expr.Pi, Expr.Proj, Expr.Prop, Expr.RawProj, Expr.RawSort, Expr.Ref, Expr.Set, Expr.Sigma, Expr.Sort, Expr.Tuple, Expr.Type, Expr.Unresolved, Expr.WithTermNested classes/interfaces inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
org.aya.guest0x0.cubical.Restr.TermLike.Factory<T> -
Constructor Summary
ConstructorsConstructorDescriptionMatch(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.collection.immutable.ImmutableSeq<Expr> discriminant, @NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses) Creates an instance of aMatchrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause>clauses()Returns the value of theclausesrecord component.@NotNull Expr.Matchdescent(@NotNull UnaryOperator<@NotNull Expr> f) @NotNull Expr.Matchdescent(@NotNull UnaryOperator<@NotNull Expr> f, @NotNull UnaryOperator<@NotNull Pattern> g) @NotNull kala.collection.immutable.ImmutableSeq<Expr>Returns the value of thediscriminantrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Expr.Matchupdate(@NotNull kala.collection.immutable.ImmutableSeq<Expr> discriminant, @NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.concrete.Expr
resolveLax, toDocMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormula
-
Constructor Details
-
Match
public Match(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr> discriminant, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses) Creates an instance of aMatchrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentdiscriminant- the value for thediscriminantrecord componentclauses- the value for theclausesrecord component
-
-
Method Details
-
update
@NotNull public @NotNull Expr.Match update(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr> discriminant, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Pattern.Clause> clauses) -
descent
-
descent
@NotNull public @NotNull Expr.Match descent(@NotNull @NotNull UnaryOperator<@NotNull Expr> f, @NotNull @NotNull UnaryOperator<@NotNull Pattern> g) -
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). -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Specified by:
sourcePosin interfaceorg.aya.util.error.SourceNode- Returns:
- the value of the
sourcePosrecord component
-
discriminant
Returns the value of thediscriminantrecord component.- Returns:
- the value of the
discriminantrecord component
-
clauses
Returns the value of theclausesrecord component.- Returns:
- the value of the
clausesrecord component
-