java.lang.Object
java.lang.Record
org.aya.core.term.ConCall
- All Implemented Interfaces:
Callable,Callable.Common,Callable.Tele,ConCallLike,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record ConCall(ConCallLike.Head head, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs)
extends Record
implements ConCallLike
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.term.Callable
Callable.Common, Callable.Factory<D extends Def,S extends Decl>, Callable.Tele Nested classes/interfaces inherited from interface org.aya.core.term.ConCallLike
ConCallLike.HeadNested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Constructor Summary
ConstructorsConstructorDescriptionConCall(ConCallLike.Head head, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs) Creates an instance of aConCallrecord class.ConCall(@NotNull DefVar<DataDef, TeleDecl.DataDecl> dataRef, @NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> conArgs) -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>>conArgs()Returns the value of theconArgsrecord component.@NotNull ConCalldescent(@NotNull UnaryOperator<Term> f, @NotNull UnaryOperator<Pat> g) Descending an operation to the term AST.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.final StringtoString()Returns a string representation of this record class.@NotNull ConCallupdate(@NotNull ConCallLike.Head head, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs) 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.core.term.ConCallLike
args, ref, uliftMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormulaMethods inherited from interface org.aya.core.term.Term
computeType, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
ConCall
public ConCall(@NotNull @NotNull DefVar<DataDef, TeleDecl.DataDecl> dataRef, @NotNull @NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> dataArgs, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> conArgs) -
ConCall
public ConCall(@NotNull ConCallLike.Head head, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs) Creates an instance of aConCallrecord class.- Parameters:
head- the value for theheadrecord componentconArgs- the value for theconArgsrecord component
-
-
Method Details
-
update
@NotNull public @NotNull ConCall update(@NotNull @NotNull ConCallLike.Head head, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs) -
descent
@NotNull public @NotNull ConCall descent(@NotNull @NotNull UnaryOperator<Term> f, @NotNull @NotNull UnaryOperator<Pat> g) Description copied from interface:TermDescending an operation to the term AST. NOTE: Currently we require the operation `f` to preserve:,invalid @link
StructCallDataCall,SortTerm,Shaped.Applicable. -
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). -
head
Returns the value of theheadrecord component.- Specified by:
headin interfaceConCallLike- Returns:
- the value of the
headrecord component
-
conArgs
Returns the value of theconArgsrecord component.- Specified by:
conArgsin interfaceConCallLike- Returns:
- the value of the
conArgsrecord component
-