Module aya.base

Class Generalize

java.lang.Object
org.aya.concrete.stmt.Generalize
All Implemented Interfaces:
Stmt, AyaDocile, TyckUnit, org.aya.util.error.SourceNode

public final class Generalize extends Object implements Stmt
  • Field Details

    • sourcePos

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

      @NotNull public final @NotNull kala.collection.immutable.ImmutableSeq<GeneralizedVar> variables
    • type

      @NotNull public @NotNull Expr type
    • ctx

      @Nullable public @Nullable Context ctx
  • Constructor Details

    • Generalize

      public Generalize(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<GeneralizedVar> variables, @NotNull @NotNull Expr type)
  • Method Details

    • accessibility

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

      public boolean needTyck(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> currentMod)
      Specified by:
      needTyck in interface TyckUnit
    • toExpr

      @NotNull public Expr.Param toExpr(boolean explicit, @NotNull @NotNull LocalVar ref)
    • toExpr

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> toExpr()
    • sourcePos

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