java.lang.Object
org.aya.ref.DefVar<Core,Concrete>
- All Implemented Interfaces:
AnyVar
public final class DefVar<Core extends GenericDef,Concrete extends Decl>
extends Object
implements AnyVar
-
Field Summary
FieldsModifier and TypeFieldDescription@UnknownNullability ConcreteInitialized in parsing, so it might be null for deserialized user definitions.@UnknownNullability CoreInitialized in type checking or core deserialization, so it might be null for unchecked user definitions.@Nullable kala.collection.immutable.ImmutableSeq<String>Initialized in the resolver or core deserialization@Nullable org.aya.util.binop.OpDeclInitialized in the resolver or core deserialization@NotNull kala.collection.mutable.MutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.util.binop.OpDecl> Binary operators can be renamed in other modules. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.aya.util.binop.Assocassoc()static <Core extends GenericDef,Concrete extends Decl>
@NotNull DefVar<Core,Concrete> Used in user definitions.Used in the serialization of core and primitive definitions.booleanbooleanisInModule(@NotNull kala.collection.immutable.ImmutableSeq<String> moduleName) @NotNull Stringname()@NotNull kala.collection.immutable.ImmutableSeq<String>@Nullable org.aya.util.binop.OpDeclresolveOpDecl(@NotNull kala.collection.immutable.ImmutableSeq<String> moduleName)
-
Field Details
-
concrete
Initialized in parsing, so it might be null for deserialized user definitions. -
core
Initialized in type checking or core deserialization, so it might be null for unchecked user definitions. -
module
Initialized in the resolver or core deserialization -
opDecl
@Nullable public @Nullable org.aya.util.binop.OpDecl opDeclInitialized in the resolver or core deserialization -
opDeclRename
@NotNull public @NotNull kala.collection.mutable.MutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.util.binop.OpDecl> opDeclRenameBinary operators can be renamed in other modules. Initialized in the resolver or core deserialization. seeResolveInfo.opRename()
-
-
Method Details
-
assoc
@Contract(pure=true) @Nullable public @Nullable org.aya.util.binop.Assoc assoc() -
name
-
concrete
@NotNull public static <Core extends GenericDef,Concrete extends Decl> @NotNull DefVar<Core,Concrete> concrete(@NotNull Concrete concrete, @NotNull @NotNull String name) Used in user definitions. -
empty
@NotNull public static <Core extends Def,Concrete extends Decl> @NotNull DefVar<Core,Concrete> empty(@NotNull @NotNull String name) Used in the serialization of core and primitive definitions. -
resolveOpDecl
@Nullable public @Nullable org.aya.util.binop.OpDecl resolveOpDecl(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> moduleName) -
equals
-
isInModule
public boolean isInModule(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> moduleName) -
qualifiedName
-