Module aya.base

Class CommonDecl

java.lang.Object
org.aya.concrete.stmt.CommonDecl
All Implemented Interfaces:
Decl, Stmt, AyaDocile, TyckUnit, org.aya.util.binop.OpDecl, org.aya.util.error.SourceNode
Direct Known Subclasses:
ClassDecl, TeleDecl, TeleDecl.DataCtor, TeleDecl.StructField

public abstract sealed class CommonDecl extends Object implements Decl permits ClassDecl, TeleDecl<RetTy>, TeleDecl.DataCtor, TeleDecl.StructField
Common parts of concrete definitions.
See Also:
API Note:
This class should only be used in extends and permits clause. Use Decl elsewhere instead.
  • Field Details

    • accessibility

      @NotNull public final @NotNull Stmt.Accessibility accessibility
    • sourcePos

      @NotNull public final @NotNull org.aya.util.error.SourcePos sourcePos
    • entireSourcePos

      @NotNull public final @NotNull org.aya.util.error.SourcePos entireSourcePos
    • opInfo

      @Nullable public final @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo
    • bindBlock

      @NotNull public final @NotNull BindBlock bindBlock
  • Constructor Details

    • CommonDecl

      protected CommonDecl(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.util.error.SourcePos entireSourcePos, @NotNull @NotNull Stmt.Accessibility accessibility, @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo, @NotNull @NotNull BindBlock bindBlock)
  • Method Details

    • bindBlock

      @NotNull public @NotNull BindBlock bindBlock()
      Specified by:
      bindBlock in interface Decl
    • sourcePos

      @NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()
      Specified by:
      sourcePos in interface org.aya.util.error.SourceNode
    • entireSourcePos

      @NotNull public @NotNull org.aya.util.error.SourcePos entireSourcePos()
      Specified by:
      entireSourcePos in interface Decl
    • accessibility

      @NotNull public @NotNull Stmt.Accessibility accessibility()
      Specified by:
      accessibility in interface Decl
      Specified by:
      accessibility in interface Stmt
    • opInfo

      @Nullable public @Nullable org.aya.util.binop.OpDecl.OpInfo opInfo()
      Specified by:
      opInfo in interface Decl
      Specified by:
      opInfo in interface org.aya.util.binop.OpDecl
    • toString

      public String toString()
      Overrides:
      toString in class Object