java.lang.Object
java.lang.Record
org.aya.core.term.RuleReducer.Fn
- Record Components:
ulift-args-
- All Implemented Interfaces:
Callable,Callable.Common,Callable.Tele,FnCallLike,RuleReducer,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
- Enclosing interface:
RuleReducer
public static record RuleReducer.Fn(Shaped.Applicable<Term,FnDef,TeleDecl.FnDecl> rule, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args)
extends Record
implements RuleReducer, FnCallLike
A
Callable for Shaped.Applicable.-
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.RuleReducer
RuleReducer.Con, RuleReducer.FnNested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Constructor Summary
ConstructorsConstructorDescriptionFn(Shaped.Applicable<Term, FnDef, TeleDecl.FnDecl> rule, int ulift, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args) Creates an instance of aFnrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>>args()Returns the value of theargsrecord component.@NotNull Termdescent(@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.ref()rule()Returns the value of therulerecord component.@NotNull FnCalltoFnCall()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
computeType, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
Fn
public Fn(@NotNull Shaped.Applicable<Term, FnDef, TeleDecl.FnDecl> rule, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args) Creates an instance of aFnrecord class.
-
-
Method Details
-
ref
- Specified by:
refin interfaceCallable- Specified by:
refin interfaceCallable.Common- Specified by:
refin interfaceCallable.Tele
-
descent
@NotNull public @NotNull Term 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. -
toFnCall
-
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 '=='. -
rule
Returns the value of therulerecord component.- Specified by:
rulein interfaceRuleReducer- Returns:
- the value of the
rulerecord component
-
ulift
public int ulift()Returns the value of theuliftrecord component.- Specified by:
uliftin interfaceCallable.Common- Specified by:
uliftin interfaceCallable.Tele- Returns:
- the value of the
uliftrecord component
-
args
Returns the value of theargsrecord component.
-