java.lang.Object
org.aya.concrete.stmt.CommonDecl
org.aya.concrete.stmt.TeleDecl.DataCtor
- All Implemented Interfaces:
Decl,Decl.Telescopic<DataCall>,Stmt,AyaDocile,TyckUnit,org.aya.util.binop.OpDecl,org.aya.util.error.SourceNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.concrete.stmt.Decl
Decl.Personality, Decl.Resulted, Decl.Telescopic<RetTy extends Term>, Decl.TopLevelNested classes/interfaces inherited from interface org.aya.util.binop.OpDecl
org.aya.util.binop.OpDecl.BindPred, org.aya.util.binop.OpDecl.OpInfoNested classes/interfaces inherited from interface org.aya.concrete.stmt.Stmt
Stmt.Accessibility -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pattern>>kala.collection.immutable.ImmutableSeq<Term.Param>Similar toDecl.Telescopic.signature(), but stores the bindings inpatternsfinal @NotNull DefVar<CtorDef,TeleDecl.DataCtor> @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param>@Nullable kala.collection.immutable.ImmutableSeq<Pat>used when tycking constructor's headerFields inherited from class org.aya.concrete.stmt.CommonDecl
accessibility, bindBlock, entireSourcePos, opInfo, sourcePosFields inherited from interface org.aya.util.binop.OpDecl
APPLICATION -
Constructor Summary
ConstructorsConstructorDescriptionDataCtor(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.util.error.SourcePos entireSourcePos, @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull String name, @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, Expr.PartEl clauses, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pattern>> patterns, boolean coerce, @NotNull BindBlock bindBlock) -
Method Summary
Modifier and TypeMethodDescription@NotNull DefVar<CtorDef,TeleDecl.DataCtor> ref()voidsetSignature(@Nullable Def.Signature<DataCall> signature) voidsetTelescope(@NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope) @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param>Methods inherited from class org.aya.concrete.stmt.CommonDecl
accessibility, bindBlock, entireSourcePos, opInfo, sourcePos, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
Field Details
-
ref
-
dataRef
-
patternTele
Similar toDecl.Telescopic.signature(), but stores the bindings inpatterns -
clauses
-
patterns
-
coerce
public final boolean coerce -
yetTyckedPat
used when tycking constructor's header -
telescope
-
signature
-
-
Constructor Details
-
DataCtor
public DataCtor(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.util.error.SourcePos entireSourcePos, @Nullable @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull @NotNull String name, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull Expr.PartEl clauses, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Pattern>> patterns, boolean coerce, @NotNull @NotNull BindBlock bindBlock)
-
-
Method Details
-
ref
-
telescope
- Specified by:
telescopein interfaceDecl.Telescopic<DataCall>
-
setTelescope
public void setTelescope(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope) - Specified by:
setTelescopein interfaceDecl.Telescopic<DataCall>
-
signature
- Specified by:
signaturein interfaceDecl.Telescopic<DataCall>
-
setSignature
- Specified by:
setSignaturein interfaceDecl.Telescopic<DataCall>
-