java.lang.Object
java.lang.Record
org.aya.core.term.PrimCall
- All Implemented Interfaces:
Callable,Callable.DefCall,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record PrimCall(@NotNull DefVar<PrimDef,TeleDecl.PrimDecl> ref, PrimDef.ID id, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args)
extends Record
implements Callable.DefCall
-
Nested Class Summary
Nested 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
ConstructorsConstructorDescriptionPrimCall(@NotNull DefVar<@NotNull PrimDef, TeleDecl.PrimDecl> ref, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args) PrimCall(@NotNull DefVar<PrimDef, TeleDecl.PrimDecl> ref, PrimDef.ID id, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args) Creates an instance of aPrimCallrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>>args()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@NotNull DefVar<PrimDef,TeleDecl.PrimDecl> ref()Returns the value of therefrecord component.final StringtoString()Returns a string representation of this record class.intulift()Returns the value of theuliftrecord 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.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
-
PrimCall
public PrimCall(@NotNull @NotNull DefVar<@NotNull PrimDef, TeleDecl.PrimDecl> ref, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args) -
PrimCall
public PrimCall(@NotNull @NotNull DefVar<PrimDef, TeleDecl.PrimDecl> ref, @NotNull PrimDef.ID id, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args) Creates an instance of aPrimCallrecord class.- Parameters:
ref- the value for therefrecord componentid- the value for theidrecord componentulift- the value for theuliftrecord componentargs- the value for theargsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
ref
Returns the value of therefrecord component.- Specified by:
refin interfaceCallable- Specified by:
refin interfaceCallable.DefCall- Returns:
- the value of the
refrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
ulift
public int ulift()Returns the value of theuliftrecord component.- Specified by:
uliftin interfaceCallable.DefCall- Returns:
- the value of the
uliftrecord component
-
args
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args()Returns the value of theargsrecord component.
-