java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Array
- Record Components:
arrayBlock-[ x | x invalid input: '<'- [ 1, 2, 3 ] ](left) or[ 1, 2, 3 ](right)
- All Implemented Interfaces:
Expr,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Expr>,org.aya.util.error.SourceNode
- Enclosing interface:
Expr
public static record Expr.Array(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.control.Either<Expr.Array.CompBlock,Expr.Array.ElementList> arrayBlock)
extends Record
implements Expr
Array Expr
- API Note:
- the arrayBlock of an empty array
[]should be a right (an empty expr seq)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordArray Comp(?)static final recordNested 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
ConstructorsConstructorDescriptionArray(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.control.Either<Expr.Array.CompBlock, Expr.Array.ElementList> arrayBlock) Creates an instance of aArrayrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.control.Either<Expr.Array.CompBlock,Expr.Array.ElementList> Returns the value of thearrayBlockrecord component.@NotNull Expr.Arraydescent(@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.static Expr.ArraynewGenerator(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Expr generator, @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> bindings, @NotNull Expr bindName, @NotNull Expr pureName) static Expr.ArraynewList(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.collection.immutable.ImmutableSeq<Expr> exprs) helper constructor, also find constructor calls easily in IDE@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Expr.Arrayupdate(@NotNull kala.control.Either<Expr.Array.CompBlock, Expr.Array.ElementList> arrayBlock) 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
-
Array
public Array(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull kala.control.Either<Expr.Array.CompBlock, Expr.Array.ElementList> arrayBlock) Creates an instance of aArrayrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentarrayBlock- the value for thearrayBlockrecord component
-
-
Method Details
-
update
@NotNull public @NotNull Expr.Array update(@NotNull @NotNull kala.control.Either<Expr.Array.CompBlock, Expr.Array.ElementList> arrayBlock) -
descent
-
newList
public static Expr.Array newList(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr> exprs) helper constructor, also find constructor calls easily in IDE -
newGenerator
public static Expr.Array newGenerator(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull Expr generator, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> bindings, @NotNull @NotNull Expr bindName, @NotNull @NotNull Expr pureName) -
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
-
arrayBlock
@NotNull public @NotNull kala.control.Either<Expr.Array.CompBlock,Expr.Array.ElementList> arrayBlock()Returns the value of thearrayBlockrecord component.- Returns:
- the value of the
arrayBlockrecord component
-