- 所有已知实现类:
ClassDecl,CommonDecl,TeleDecl,TeleDecl.DataCtor,TeleDecl.DataDecl,TeleDecl.FnDecl,TeleDecl.PrimDecl,TeleDecl.StructDecl,TeleDecl.StructField
GenericDef.
Concrete definitions can be varied in the following ways:
- Whether it has a telescope, see
Decl.Telescopic - Whether it can be defined at top-level, see
Decl.TopLevel - Whether it has a result type, see
Decl.Resulted
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.
For visitors that may need to visit a certain property, it is recommended to
provide an extra proof object that implements the property. For example, visiting
a Decl.Telescopic concrete definition requires a proof object of type Decl.Telescopic
in addition to the original definition object of type Decl.
Checkout StmtOps.visitTelescopic(Decl, Telescopic, Object)
for detailed code example.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型接口说明static enumstatic interfaceDenotes that the definition has a result typestatic interfaceDenotes that the definition is telescopicstatic interfaceDenotes that the definition can be defined at top-level从接口继承的嵌套类/接口 org.aya.util.binop.OpDecl
org.aya.util.binop.OpDecl.BindPred, org.aya.util.binop.OpDecl.OpInfo从接口继承的嵌套类/接口 org.aya.concrete.stmt.Stmt
Stmt.Accessibility -
字段概要
从接口继承的字段 org.aya.util.binop.OpDecl
APPLICATION -
方法概要
修饰符和类型方法说明@NotNull Stmt.Accessibility@NotNull BindBlock@NotNull org.aya.util.error.SourcePosdefault boolean@Nullable org.aya.util.binop.OpDecl.OpInfoopInfo()@NotNull DefVar<?,?> ref()从接口继承的方法 org.aya.generic.AyaDocile
debuggerOnlyToDoc从接口继承的方法 org.aya.util.error.SourceNode
sourcePos
-
方法详细资料
-
accessibility
- 指定者:
accessibility在接口中Stmt
-
ref
-
bindBlock
-
opInfo
@Nullable @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo()- 指定者:
opInfo在接口中org.aya.util.binop.OpDecl
-
entireSourcePos
@NotNull @NotNull org.aya.util.error.SourcePos entireSourcePos() -
needTyck
default boolean needTyck(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> currentMod)
-