java.lang.Object
java.lang.Record
org.aya.resolve.context.EmptyContext
- 所有已实现的接口:
Context
public record EmptyContext(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull Path underlyingFile)
extends Record
implements Context
- API Note:
- in each file's dependency tree there should be one and only one EmptyContext which is also the tree root.
- Implementation Note:
- EmptyContext is the context storing the underlying file, and its Reporter in the resolving stage.
-
嵌套类概要
从接口继承的嵌套类/接口 org.aya.resolve.context.Context
Context.ResolvingInterruptedException -
字段概要
从接口继承的字段 org.aya.resolve.context.Context
TOP_LEVEL_MOD_NAME -
构造器概要
构造器构造器说明EmptyContext(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull Path underlyingFile) 创建EmptyContext记录类的实例。 -
方法概要
修饰符和类型方法说明final boolean指示某个其他对象是否“等于”此对象。getModuleLocalMaybe(@NotNull kala.collection.immutable.ImmutableSeq<String> modName) @Nullable AnyVargetQualifiedLocalMaybe(@NotNull kala.collection.immutable.ImmutableSeq<@NotNull String> modName, @NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) @Nullable AnyVargetUnqualifiedLocalMaybe(@NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) final inthashCode()返回此对象的哈希代码值。@Nullable Contextparent()@NotNull org.aya.util.reporter.Reporterreporter()返回reporter记录组件的值。final StringtoString()返回此记录类的字符串表示形式。@NotNull Path返回underlyingFile记录组件的值。从接口继承的方法 org.aya.resolve.context.Context
bind, bind, bind, collect, derive, derive, get, getMaybe, getModuleMaybe, getQualified, getQualified, getQualifiedMaybe, getQualifiedMaybe, getUnqualified, getUnqualifiedMaybe, iterate, moduleName, reportAndThrow
-
构造器详细资料
-
EmptyContext
public EmptyContext(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull Path underlyingFile) 创建EmptyContext记录类的实例。- 参数:
reporter-reporter记录组件的值underlyingFile-underlyingFile记录组件的值
-
-
方法详细资料
-
parent
-
getUnqualifiedLocalMaybe
@Nullable public @Nullable AnyVar getUnqualifiedLocalMaybe(@NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) - 指定者:
getUnqualifiedLocalMaybe在接口中Context
-
getQualifiedLocalMaybe
@Nullable public @Nullable AnyVar getQualifiedLocalMaybe(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull String> modName, @NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) - 指定者:
getQualifiedLocalMaybe在接口中Context
-
getModuleLocalMaybe
@Nullable public @Nullable kala.collection.mutable.MutableMap<String,AnyVar> getModuleLocalMaybe(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> modName) - 指定者:
getModuleLocalMaybe在接口中Context
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
reporter
@NotNull public @NotNull org.aya.util.reporter.Reporter reporter()返回reporter记录组件的值。 -
underlyingFile
返回underlyingFile记录组件的值。- 指定者:
underlyingFile在接口中Context- 返回:
underlyingFile记录组件的值
-