java.lang.Object
java.lang.Record
org.aya.core.pat.Pat.ShapedInt
- All Implemented Interfaces:
Pat,AyaDocile,Shaped<Pat>,Shaped.Inductive<Pat>,Shaped.Nat<Pat>
- Enclosing interface:
Pat
public static record Pat.ShapedInt(int repr, @NotNull ShapeRecognition recognition, @NotNull DataCall type, boolean explicit)
extends Record
implements Pat, Shaped.Nat<Pat>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.pat.Pat
Pat.Absurd, Pat.Bind, Pat.Ctor, Pat.Meta, Pat.Preclause<T extends AyaDocile>, Pat.ShapedInt, Pat.TupleNested classes/interfaces inherited from interface org.aya.generic.Shaped
Shaped.Inductive<T>, Shaped.List<T extends AyaDocile>, Shaped.Nat<T extends AyaDocile> -
Constructor Summary
ConstructorsConstructorDescriptionShapedInt(int repr, @NotNull ShapeRecognition recognition, @NotNull DataCall type, boolean explicit) Creates an instance of aShapedIntrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Patdestruct(int repr) final booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.@NotNull PatMake sure you are inline all patterns in order@NotNull Pat@NotNull Pat@NotNull ShapeRecognitionReturns the value of therecognitionrecord component.intrepr()Returns the value of thereprrecord component.voidstoreBindings(@NotNull LocalCtx ctx) final StringtoString()Returns a string representation of this record class.@NotNull DataCalltype()Returns the value of thetyperecord component.@NotNull PatMethods 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.generic.Shaped.Inductive
compareShape, ctorRefMethods inherited from interface org.aya.generic.Shaped.Nat
compareUntyped, constructorForm
-
Constructor Details
-
ShapedInt
public ShapedInt(int repr, @NotNull @NotNull ShapeRecognition recognition, @NotNull @NotNull DataCall type, boolean explicit) Creates an instance of aShapedIntrecord class.- Parameters:
repr- the value for thereprrecord componentrecognition- the value for therecognitionrecord componenttype- the value for thetyperecord componentexplicit- the value for theexplicitrecord component
-
-
Method Details
-
zonk
-
inline
Description copied from interface:PatMake sure you are inline all patterns in order -
storeBindings
- Specified by:
storeBindingsin interfacePat
-
makeZero
- Specified by:
makeZeroin interfaceShaped.Nat<Pat>
-
makeSuc
@NotNull public @NotNull Pat makeSuc(@NotNull @NotNull CtorDef suc, @NotNull @NotNull org.aya.util.Arg<Pat> pat) - Specified by:
makeSucin interfaceShaped.Nat<Pat>
-
destruct
- Specified by:
destructin interfaceShaped.Nat<Pat>
-
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 '=='. -
repr
public int repr()Returns the value of thereprrecord component.- Specified by:
reprin interfaceShaped.Nat<Pat>- Returns:
- the value of the
reprrecord component
-
recognition
Returns the value of therecognitionrecord component.- Specified by:
recognitionin interfaceShaped.Inductive<Pat>- Returns:
- the value of the
recognitionrecord component
-
type
Returns the value of thetyperecord component. -
explicit
public boolean explicit()Returns the value of theexplicitrecord component.
-