Module aya.base

Class PrimDef.Factory

java.lang.Object
org.aya.core.def.PrimDef.Factory
Enclosing class:
PrimDef

public static class PrimDef.Factory extends Object
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • factory

      @NotNull public @NotNull PrimDef factory(@NotNull @NotNull PrimDef.ID name, @NotNull @NotNull DefVar<PrimDef,TeleDecl.PrimDecl> ref)
    • getCall

      @NotNull public @NotNull PrimCall getCall(@NotNull @NotNull PrimDef.ID id, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args)
    • getCall

      @NotNull public @NotNull PrimCall getCall(@NotNull @NotNull PrimDef.ID id)
    • getOption

      @NotNull public @NotNull kala.control.Option<PrimDef> getOption(@NotNull @NotNull PrimDef.ID name)
    • have

      public boolean have(@NotNull @NotNull PrimDef.ID name)
    • suppressRedefinition

      public boolean suppressRedefinition()
      whether redefinition should be treated as error
    • getOrCreate

      @NotNull public @NotNull PrimDef getOrCreate(@NotNull @NotNull PrimDef.ID name, @NotNull @NotNull DefVar<PrimDef,TeleDecl.PrimDecl> ref)
    • checkDependency

      @NotNull public @NotNull kala.control.Option<kala.collection.immutable.ImmutableSeq<@NotNull PrimDef.ID>> checkDependency(@NotNull @NotNull PrimDef.ID name)
    • unfold

      @NotNull public @NotNull Term unfold(@NotNull @NotNull PrimDef.ID name, @NotNull @NotNull PrimCall primCall, @NotNull @NotNull TyckState state)
    • clear

      public void clear()
    • clear

      public void clear(@NotNull @NotNull PrimDef.ID name)