java.lang.Object
java.lang.Record
org.aya.resolve.module.FileModuleLoader
- 所有已实现的接口:
ModuleLoader
public record FileModuleLoader(@NotNull org.aya.util.error.SourceFileLocator locator, @NotNull Path basePath, @NotNull org.aya.util.reporter.Reporter reporter, @NotNull GenericAyaParser parser, PrimDef.Factory primFactory, @Nullable Trace.Builder builder)
extends Record
implements ModuleLoader
-
构造器概要
构造器构造器说明FileModuleLoader(@NotNull org.aya.util.error.SourceFileLocator locator, @NotNull Path basePath, @NotNull org.aya.util.reporter.Reporter reporter, @NotNull GenericAyaParser parser, PrimDef.Factory primFactory, @Nullable Trace.Builder builder) 创建FileModuleLoader记录类的实例。 -
方法概要
修饰符和类型方法说明@NotNull PathbasePath()返回basePath记录组件的值。@Nullable Trace.Builderbuilder()返回builder记录组件的值。final boolean指示某个其他对象是否“等于”此对象。static voidhandleInternalError(@NotNull InternalException e) final inthashCode()返回此对象的哈希代码值。@Nullable ResolveInfoload(@NotNull kala.collection.immutable.ImmutableSeq<@NotNull String> path, @NotNull ModuleLoader recurseLoader) @NotNull org.aya.util.error.SourceFileLocatorlocator()返回locator记录组件的值。@NotNull GenericAyaParserparser()返回parser记录组件的值。返回primFactory记录组件的值。@NotNull org.aya.util.reporter.Reporterreporter()返回reporter记录组件的值。final StringtoString()返回此记录类的字符串表示形式。从接口继承的方法 org.aya.resolve.module.ModuleLoader
load, resolveModule, tyckModule, tyckModule
-
构造器详细资料
-
FileModuleLoader
public FileModuleLoader(@NotNull @NotNull org.aya.util.error.SourceFileLocator locator, @NotNull @NotNull Path basePath, @NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull GenericAyaParser parser, @NotNull PrimDef.Factory primFactory, @Nullable Trace.Builder builder) 创建FileModuleLoader记录类的实例。- 参数:
locator-locator记录组件的值basePath-basePath记录组件的值reporter-reporter记录组件的值parser-parser记录组件的值primFactory-primFactory记录组件的值builder-builder记录组件的值
-
-
方法详细资料
-
load
@Nullable public @Nullable ResolveInfo load(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull String> path, @NotNull @NotNull ModuleLoader recurseLoader) - 指定者:
load在接口中ModuleLoader
-
handleInternalError
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
locator
@NotNull public @NotNull org.aya.util.error.SourceFileLocator locator()返回locator记录组件的值。- 返回:
locator记录组件的值
-
basePath
返回basePath记录组件的值。- 返回:
basePath记录组件的值
-
reporter
@NotNull public @NotNull org.aya.util.reporter.Reporter reporter()返回reporter记录组件的值。- 指定者:
reporter在接口中ModuleLoader- 返回:
reporter记录组件的值
-
parser
返回parser记录组件的值。- 返回:
parser记录组件的值
-
primFactory
返回primFactory记录组件的值。- 返回:
primFactory记录组件的值
-
builder
返回builder记录组件的值。- 返回:
builder记录组件的值
-