java.lang.Object
java.lang.Record
org.aya.core.term.PAppTerm
- All Implemented Interfaces:
Elimination,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record PAppTerm(@NotNull Term of, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args, @NotNull PathTerm cube)
extends Record
implements Elimination
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
org.aya.guest0x0.cubical.Restr.TermLike.Factory<T>Nested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Constructor Summary
ConstructorsConstructorDescriptionPAppTerm(@NotNull Term of, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args, @NotNull PathTerm cube) Creates an instance of aPAppTermrecord class.PAppTerm(@NotNull Term of, @NotNull PathTerm cube, org.aya.util.Arg<@NotNull Term> @NotNull ... args) -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>>args()Returns the value of theargsrecord component.@NotNull PathTermcube()Returns the value of thecuberecord component.@NotNull PAppTermdescent(@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.@NotNull Termof()Returns the value of theofrecord component.final StringtoString()Returns a string representation of this record class.@NotNull PAppTermupdate(@NotNull Term of, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args, @NotNull PathTerm cube) 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
computeType, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
PAppTerm
@SafeVarargs public PAppTerm(@NotNull @NotNull Term of, @NotNull @NotNull PathTerm cube, org.aya.util.Arg<@NotNull Term> @NotNull ... args) -
PAppTerm
public PAppTerm(@NotNull @NotNull Term of, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args, @NotNull @NotNull PathTerm cube) Creates an instance of aPAppTermrecord class.- Parameters:
of- the value for theofrecord componentargs- the value for theargsrecord componentcube- the value for thecuberecord component
-
-
Method Details
-
update
-
descent
@NotNull public @NotNull PAppTerm 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). -
of
Returns the value of theofrecord component.- Specified by:
ofin interfaceElimination- Returns:
- the value of the
ofrecord component
-
args
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<@NotNull Term>> args()Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
cube
Returns the value of thecuberecord component.- Returns:
- the value of the
cuberecord component
-