java.lang.Object
java.lang.Record
org.aya.core.term.FnCall
- All Implemented Interfaces:
Callable,Callable.DefCall,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record FnCall(@NotNull DefVar<FnDef,TeleDecl.FnDecl> ref, 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
ConstructorsConstructorDescriptionFnCall(@NotNull DefVar<FnDef, TeleDecl.FnDecl> ref, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args) Creates an instance of aFnCallrecord 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.@NotNull DefVar<FnDef,TeleDecl.FnDecl> 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
-
FnCall
public FnCall(@NotNull @NotNull DefVar<FnDef, TeleDecl.FnDecl> ref, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args) Creates an instance of aFnCallrecord class.- Parameters:
ref- the value for therefrecord 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
-
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.
-