- All Superinterfaces:
Problematic
- All Known Implementing Classes:
CachedModuleLoader,DumbModuleLoader,FileModuleLoader,ModuleListLoader
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsFileLevelModule(@NotNull org.aya.syntax.ref.ModulePath path) default @Nullable ResolveInfoload(@NotNull org.aya.syntax.ref.ModulePath path) @Nullable ResolveInfoload(@NotNull org.aya.syntax.ref.ModulePath path, @NotNull ModuleLoader recurseLoader) default @NotNull ResolveInforesolveModule(@NotNull PrimFactory primFactory, @NotNull ShapeFactory shapeFactory, @NotNull AyaBinOpSet opSet, @NotNull ModuleContext context, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @NotNull ModuleLoader recurseLoader) Resolve a certain module.default @NotNull ResolveInforesolveModule(@NotNull PrimFactory primFactory, @NotNull ModuleContext context, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @NotNull ModuleLoader recurseLoader) Resolve a certain moduledefault <E extends Exception>
@NotNull ResolveInfotyckModule(@NotNull PrimFactory primFactory, @NotNull ModuleContext context, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @Nullable ModuleCallback<E> onTycked) default <E extends Exception>
@NotNull ResolveInfotyckModule(ResolveInfo resolveInfo, ModuleCallback<E> onTycked) Methods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, fail, reporter
-
Method Details
-
tyckModule
@NotNull default <E extends Exception> @NotNull ResolveInfo tyckModule(@NotNull @NotNull PrimFactory primFactory, @NotNull @NotNull ModuleContext context, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @Nullable @Nullable ModuleCallback<E> onTycked) throws E - Throws:
E
-
tyckModule
@NotNull default <E extends Exception> @NotNull ResolveInfo tyckModule(ResolveInfo resolveInfo, ModuleCallback<E> onTycked) throws E - Throws:
E
-
resolveModule
@Internal @NotNull default @NotNull ResolveInfo resolveModule(@NotNull @NotNull PrimFactory primFactory, @NotNull @NotNull ModuleContext context, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @NotNull @NotNull ModuleLoader recurseLoader) Resolve a certain module- Parameters:
context- the moduleprogram- the stmtrecurseLoader- theModuleLoaderthat use for tycking the module
-
resolveModule
@Internal @NotNull default @NotNull ResolveInfo resolveModule(@NotNull @NotNull PrimFactory primFactory, @NotNull @NotNull ShapeFactory shapeFactory, @NotNull @NotNull AyaBinOpSet opSet, @NotNull @NotNull ModuleContext context, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @NotNull @NotNull ModuleLoader recurseLoader) Resolve a certain module.- Parameters:
context- the context of the moduleprogram- the statements of the modulerecurseLoader- the module loader that used to resolve
-
load
@Nullable @Nullable ResolveInfo load(@NotNull @NotNull org.aya.syntax.ref.ModulePath path, @NotNull @NotNull ModuleLoader recurseLoader) -
load
-
existsFileLevelModule
boolean existsFileLevelModule(@NotNull @NotNull org.aya.syntax.ref.ModulePath path) - Returns:
- if there is a module with path , which can be untycked
-