java.lang.Object
java.lang.Record
org.aya.core.term.ConCall
- All Implemented Interfaces:
Callable,Callable.DefCall,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record ConCall(ConCall.Head head, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> conArgs)
extends Record
implements Callable.DefCall
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.aya.core.term.Callable
Callable.DefCall, Callable.Factory<D extends Def,S extends Decl> Nested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Constructor Summary
ConstructorsConstructorDescriptionConCall(ConCall.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<@NotNull Term>>args()@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>>conArgs()Returns the value of theconArgsrecord component.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.@NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref()final StringtoString()Returns a string representation of this record class.intulift()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.guest0x0.cubical.Restr.TermLike
asFormulaMethods inherited from interface org.aya.core.term.Term
computeSort, computeType, descent, 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 ConCall.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
-
ref
- Specified by:
refin interfaceCallable- Specified by:
refin interfaceCallable.DefCall
-
ulift
public int ulift()- Specified by:
uliftin interfaceCallable.DefCall
-
args
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args() -
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.- Returns:
- the value of the
headrecord component
-
conArgs
Returns the value of theconArgsrecord component.- Returns:
- the value of the
conArgsrecord component
-