java.lang.Object
java.lang.Record
org.aya.concrete.Pattern.FakeShapedList
- All Implemented Interfaces:
Shaped<Pattern>,Shaped.Inductive<Pattern>,Shaped.List<Pattern>
- Enclosing interface:
Pattern
public static record Pattern.FakeShapedList(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.collection.immutable.ImmutableSeq<Pattern> repr, @NotNull ShapeRecognition recognition, @NotNull DataCall type)
extends Record
implements Shaped.List<Pattern>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.generic.Shaped
Shaped.Inductive<T>, Shaped.List<T extends AyaDocile>, Shaped.Nat<T extends AyaDocile> -
Constructor Summary
ConstructorsConstructorDescriptionFakeShapedList(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull kala.collection.immutable.ImmutableSeq<Pattern> repr, @NotNull ShapeRecognition recognition, @NotNull DataCall type) Creates an instance of aFakeShapedListrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Patternfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PatternmakeCons(@NotNull CtorDef cons, @NotNull org.aya.util.Arg<Term> type, org.aya.util.Arg<Pattern> x, org.aya.util.Arg<Pattern> xs) @NotNull Pattern@NotNull ShapeRecognitionReturns the value of therecognitionrecord component.@NotNull kala.collection.immutable.ImmutableSeq<Pattern>repr()Returns the value of thereprrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull DataCalltype()Returns the value of thetyperecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.Shaped.Inductive
compareShape, ctorRefMethods inherited from interface org.aya.generic.Shaped.List
compareUntyped, constructorForm
-
Constructor Details
-
FakeShapedList
public FakeShapedList(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Pattern> repr, @NotNull @NotNull ShapeRecognition recognition, @NotNull @NotNull DataCall type) Creates an instance of aFakeShapedListrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentrepr- the value for thereprrecord componentrecognition- the value for therecognitionrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
makeNil
@NotNull public @NotNull Pattern makeNil(@NotNull @NotNull CtorDef nil, @NotNull @NotNull org.aya.util.Arg<Term> type) - Specified by:
makeNilin interfaceShaped.List<Pattern>
-
makeCons
@NotNull public @NotNull Pattern makeCons(@NotNull @NotNull CtorDef cons, @NotNull @NotNull org.aya.util.Arg<Term> type, org.aya.util.Arg<Pattern> x, org.aya.util.Arg<Pattern> xs) - Specified by:
makeConsin interfaceShaped.List<Pattern>
-
destruct
@NotNull public @NotNull Pattern destruct(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Pattern> repr) - Specified by:
destructin interfaceShaped.List<Pattern>
-
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). -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Returns:
- the value of the
sourcePosrecord component
-
repr
Returns the value of thereprrecord component.- Specified by:
reprin interfaceShaped.List<Pattern>- Returns:
- the value of the
reprrecord component
-
recognition
Returns the value of therecognitionrecord component.- Specified by:
recognitionin interfaceShaped.Inductive<Pattern>- Returns:
- the value of the
recognitionrecord component
-
type
Returns the value of thetyperecord component.
-