java.lang.Object
org.aya.core.def.PrimDef.Factory
- Enclosing class:
PrimDef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.control.Option<kala.collection.immutable.ImmutableSeq<@NotNull PrimDef.ID>>checkDependency(@NotNull PrimDef.ID name) voidclear()voidclear(@NotNull PrimDef.ID name) @NotNull PrimDeffactory(@NotNull PrimDef.ID name, @NotNull DefVar<PrimDef, TeleDecl.PrimDecl> ref) @NotNull PrimCallgetCall(@NotNull PrimDef.ID id) @NotNull PrimCallgetCall(@NotNull PrimDef.ID id, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.Arg<Term>> args) @NotNull kala.control.Option<PrimDef>getOption(@NotNull PrimDef.ID name) @NotNull PrimDefgetOrCreate(@NotNull PrimDef.ID name, @NotNull DefVar<PrimDef, TeleDecl.PrimDecl> ref) booleanhave(@NotNull PrimDef.ID name) booleanwhether redefinition should be treated as error@NotNull Termunfold(@NotNull PrimDef.ID name, @NotNull PrimCall primCall, @NotNull TyckState state)
-
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
-
getOption
-
have
-
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
-