java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Coe
- Record Components:
resolvedVar- will be set to the primitive coe's DefVar during resolvingrestr- The cofibration under which the type should be constant
- All Implemented Interfaces:
Expr,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Expr>,org.aya.util.error.SourceNode
- Enclosing interface:
Expr
public static record Expr.Coe(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull QualifiedID id, @NotNull DefVar<?,?> resolvedVar, @NotNull Expr type, @NotNull Expr restr)
extends Record
implements Expr
calls to
desugared from
Expr.RawProj for simplicity.- See Also:
-
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
ConstructorsConstructorDescriptionCoe(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull QualifiedID id, @NotNull DefVar<?, ?> resolvedVar, @NotNull Expr type, @NotNull Expr restr) Creates an instance of aCoerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescent(@NotNull UnaryOperator<@NotNull Expr> f) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull QualifiedIDid()Returns the value of theidrecord component.@NotNull DefVar<?,?> Returns the value of theresolvedVarrecord component.@NotNull Exprrestr()Returns the value of therestrrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Exprtype()Returns the value of thetyperecord component.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
-
Coe
public Coe(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull QualifiedID id, @NotNull @NotNull DefVar<?, ?> resolvedVar, @NotNull @NotNull Expr type, @NotNull @NotNull Expr restr) Creates an instance of aCoerecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentid- the value for theidrecord componentresolvedVar- the value for theresolvedVarrecord componenttype- the value for thetyperecord componentrestr- the value for therestrrecord component
-
-
Method Details
-
update
-
descent
-
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
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
resolvedVar
Returns the value of theresolvedVarrecord component.- Returns:
- the value of the
resolvedVarrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
restr
Returns the value of therestrrecord component.- Returns:
- the value of the
restrrecord component
-