java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Proj
- Record Components:
resolvedVar- will be set to the field's DefVar during resolving
- All Implemented Interfaces:
Expr,Expr.WithTerm,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Expr>,org.aya.util.error.SourceNode
- Enclosing interface:
Expr
public static record Expr.Proj(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Expr tup, @NotNull kala.control.Either<Integer,QualifiedID> ix, @Nullable AnyVar resolvedVar, @NotNull kala.value.MutableValue<ExprTycker.Result> theCore)
extends Record
implements Expr, Expr.WithTerm
-
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
ConstructorsConstructorDescriptionProj(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Expr tup, @NotNull kala.control.Either<Integer, QualifiedID> ix) Proj(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Expr tup, @NotNull kala.control.Either<Integer, QualifiedID> ix, @Nullable AnyVar resolvedVar, @NotNull kala.value.MutableValue<ExprTycker.Result> theCore) Creates an instance of aProjrecord 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 kala.control.Either<Integer,QualifiedID> ix()Returns the value of theixrecord component.@Nullable AnyVarReturns the value of theresolvedVarrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.@NotNull kala.value.MutableValue<ExprTycker.Result>theCore()Returns the value of thetheCorerecord component.final StringtoString()Returns a string representation of this record class.@NotNull Exprtup()Returns the value of thetuprecord 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.concrete.Expr.WithTerm
coreMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormula
-
Constructor Details
-
Proj
public Proj(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull Expr tup, @NotNull @NotNull kala.control.Either<Integer, QualifiedID> ix) -
Proj
public Proj(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull Expr tup, @NotNull @NotNull kala.control.Either<Integer, QualifiedID> ix, @Nullable @Nullable AnyVar resolvedVar, @NotNull @NotNull kala.value.MutableValue<ExprTycker.Result> theCore) Creates an instance of aProjrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componenttup- the value for thetuprecord componentix- the value for theixrecord componentresolvedVar- the value for theresolvedVarrecord componenttheCore- the value for thetheCorerecord 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
-
tup
Returns the value of thetuprecord component.- Returns:
- the value of the
tuprecord component
-
ix
Returns the value of theixrecord component.- Returns:
- the value of the
ixrecord component
-
resolvedVar
Returns the value of theresolvedVarrecord component.- Returns:
- the value of the
resolvedVarrecord component
-
theCore
Returns the value of thetheCorerecord component.- Specified by:
theCorein interfaceExpr.WithTerm- Returns:
- the value of the
theCorerecord component
-