java.lang.Object
java.lang.Record
org.aya.core.term.IntegerOps.ConRule
- All Implemented Interfaces:
IntegerOps<CtorDef,,TeleDecl.DataCtor> Shaped<Term>,Shaped.Applicable<Term,CtorDef, TeleDecl.DataCtor>
- Enclosing interface:
IntegerOps<Core extends Def,Concrete extends TeleDecl<?>>
public static record IntegerOps.ConRule(@NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref, @NotNull ShapeRecognition paramRecognition, @NotNull DataCall paramType)
extends Record
implements IntegerOps<CtorDef,TeleDecl.DataCtor>
-
Nested Class Summary
Nested 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
ConstructorsConstructorDescriptionConRule(@NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, @NotNull ShapeRecognition paramRecognition, @NotNull DataCall paramType) Creates an instance of aConRulerecord 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.booleanisZero()@NotNull ShapeRecognitionReturns the value of theparamRecognitionrecord component.@NotNull DataCallReturns the value of theparamTyperecord component.@NotNull DefVar<CtorDef,TeleDecl.DataCtor> 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
-
ConRule
public ConRule(@NotNull @NotNull DefVar<CtorDef, TeleDecl.DataCtor> ref, @NotNull @NotNull ShapeRecognition paramRecognition, @NotNull @NotNull DataCall paramType) Creates an instance of aConRulerecord class.- Parameters:
ref- the value for therefrecord componentparamRecognition- the value for theparamRecognitionrecord componentparamType- the value for theparamTyperecord component
-
-
Method Details
-
isZero
public boolean isZero() -
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,CtorDef, TeleDecl.DataCtor> - 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,CtorDef, TeleDecl.DataCtor> - Returns:
- the value of the
refrecord component
-
paramRecognition
Returns the value of theparamRecognitionrecord component.- Returns:
- the value of the
paramRecognitionrecord component
-
paramType
Returns the value of theparamTyperecord component.- Returns:
- the value of the
paramTyperecord component
-