java.lang.Object
java.lang.Record
org.aya.core.term.IntegerOps.FnRule
- All Implemented Interfaces:
IntegerOps<FnDef,,TeleDecl.FnDecl> Shaped<Term>,Shaped.Applicable<Term,FnDef, TeleDecl.FnDecl>
- Enclosing interface:
IntegerOps<Core extends Def,Concrete extends TeleDecl<?>>
public static record IntegerOps.FnRule(@NotNull DefVar<FnDef,TeleDecl.FnDecl> ref, @NotNull IntegerOps.FnRule.Kind kind)
extends Record
implements IntegerOps<FnDef,TeleDecl.FnDecl>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.aya.core.term.IntegerOps
IntegerOps.ConRule, IntegerOps.FnRuleNested classes/interfaces inherited from interface org.aya.generic.Shaped
Shaped.Applicable<T extends AyaDocile,Core extends Def, Concrete extends TeleDecl<?>>, Shaped.Inductive<T>, Shaped.List<T extends AyaDocile>, Shaped.Nat<T extends AyaDocile> -
Constructor Summary
ConstructorsConstructorDescriptionFnRule(@NotNull DefVar<FnDef, TeleDecl.FnDecl> ref, @NotNull IntegerOps.FnRule.Kind kind) Creates an instance of aFnRulerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable TermApplying arguments.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull IntegerOps.FnRule.Kindkind()Returns the value of thekindrecord component.@NotNull DefVar<FnDef,TeleDecl.FnDecl> ref()Returns the value of therefrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.core.term.IntegerOps
type
-
Constructor Details
-
FnRule
public FnRule(@NotNull @NotNull DefVar<FnDef, TeleDecl.FnDecl> ref, @NotNull @NotNull IntegerOps.FnRule.Kind kind) Creates an instance of aFnRulerecord class.- Parameters:
ref- the value for therefrecord componentkind- the value for thekindrecord component
-
-
Method Details
-
apply
@Nullable public @Nullable Term apply(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args) Description copied from interface:Shaped.ApplicableApplying arguments.- Specified by:
applyin interfaceShaped.Applicable<Term,FnDef, TeleDecl.FnDecl> - Parameters:
args- arguments- Returns:
- null if failed
-
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). -
ref
Returns the value of therefrecord component.- Specified by:
refin interfaceShaped.Applicable<Term,FnDef, TeleDecl.FnDecl> - Returns:
- the value of the
refrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-