- All Superinterfaces:
AyaDocile,org.aya.util.binop.OpDecl,org.aya.util.error.SourceNode,Stmt,TyckUnit
- All Known Implementing Classes:
ClassDecl,CommonDecl,TeleDecl,TeleDecl.ClassMember,TeleDecl.DataCtor,TeleDecl.DataDecl,TeleDecl.FnDecl,TeleDecl.PrimDecl,TeleDecl.TopLevel
public sealed interface Decl
extends org.aya.util.binop.OpDecl, org.aya.util.error.SourceNode, TyckUnit, Stmt
permits CommonDecl
Generic concrete definitions, corresponding to
GenericDef.
Concrete definitions can be varied in the following ways:
- Whether it has a telescope, see
TeleDecl - Whether it can be defined at top-level, see
Decl.TopLevel
There are some commonalities between concrete definitions: they all have
source positions, names, operator info and statement accessibility. These common
parts are extracted into CommonDecl for all concrete definitions,
TeleDecl for all top-level telescopic concrete definitions and
ClassDecl for all top-level class-able concrete definitions.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDenotes that the definition can be defined at top-levelNested 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
Fields inherited from interface org.aya.util.binop.OpDecl
APPLICATION -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Stmt.Accessibilitydefault @NotNull BindBlockdefault @NotNull org.aya.util.error.SourcePos@NotNull DeclInfoinfo()default booleandefault @Nullable org.aya.util.binop.OpDecl.OpInfoopInfo()@NotNull DefVar<?,?> ref()default @NotNull org.aya.util.error.SourcePosMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
Method Details
-
ref
-
info
-
bindBlock
-
entireSourcePos
@NotNull default @NotNull org.aya.util.error.SourcePos entireSourcePos() -
sourcePos
@NotNull default @NotNull org.aya.util.error.SourcePos sourcePos()- Specified by:
sourcePosin interfaceorg.aya.util.error.SourceNode
-
accessibility
- Specified by:
accessibilityin interfaceStmt
-
opInfo
@Nullable default @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo()- Specified by:
opInfoin interfaceorg.aya.util.binop.OpDecl
-
needTyck
default boolean needTyck(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> currentMod)
-