java.lang.Object
java.lang.Record
org.aya.primitive.PrimFactory.PrimSeed
- Enclosing class:
PrimFactory
public static record PrimFactory.PrimSeed(@NotNull org.aya.syntax.core.def.PrimDef.ID name, @NotNull PrimFactory.Unfolder unfold, @NotNull Function<@NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef,org.aya.syntax.concrete.stmt.decl.PrimDecl>,@NotNull org.aya.syntax.core.def.PrimDef> supplier, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.syntax.core.def.PrimDef.ID> dependency)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPrimSeed(@NotNull org.aya.syntax.core.def.PrimDef.ID name, @NotNull PrimFactory.Unfolder unfold, @NotNull Function<@NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef, org.aya.syntax.concrete.stmt.decl.PrimDecl>, @NotNull org.aya.syntax.core.def.PrimDef> supplier, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.syntax.core.def.PrimDef.ID> dependency) Creates an instance of aPrimSeedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.syntax.core.def.PrimDef.ID> Returns the value of thedependencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.syntax.core.def.PrimDef.IDname()Returns the value of thenamerecord component.@NotNull Function<@NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef, org.aya.syntax.concrete.stmt.decl.PrimDecl>, @NotNull org.aya.syntax.core.def.PrimDef> supplier()Returns the value of thesupplierrecord component.@NotNull org.aya.syntax.core.def.PrimDefsupply(@NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef, org.aya.syntax.concrete.stmt.decl.PrimDecl> ref) final StringtoString()Returns a string representation of this record class.@NotNull PrimFactory.Unfolderunfold()Returns the value of theunfoldrecord component.
-
Constructor Details
-
PrimSeed
public PrimSeed(@NotNull @NotNull org.aya.syntax.core.def.PrimDef.ID name, @NotNull @NotNull PrimFactory.Unfolder unfold, @NotNull @NotNull Function<@NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef, org.aya.syntax.concrete.stmt.decl.PrimDecl>, @NotNull org.aya.syntax.core.def.PrimDef> supplier, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.syntax.core.def.PrimDef.ID> dependency) Creates an instance of aPrimSeedrecord class.- Parameters:
name- the value for thenamerecord componentunfold- the value for theunfoldrecord componentsupplier- the value for thesupplierrecord componentdependency- the value for thedependencyrecord component
-
-
Method Details
-
supply
@NotNull public @NotNull org.aya.syntax.core.def.PrimDef supply(@NotNull @NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef, org.aya.syntax.concrete.stmt.decl.PrimDecl> ref) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
@NotNull public @NotNull org.aya.syntax.core.def.PrimDef.ID name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
unfold
Returns the value of theunfoldrecord component.- Returns:
- the value of the
unfoldrecord component
-
supplier
@NotNull public @NotNull Function<@NotNull org.aya.syntax.ref.DefVar<org.aya.syntax.core.def.PrimDef,org.aya.syntax.concrete.stmt.decl.PrimDecl>, supplier()@NotNull org.aya.syntax.core.def.PrimDef> Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-
dependency
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.syntax.core.def.PrimDef.ID> dependency()Returns the value of thedependencyrecord component.- Returns:
- the value of the
dependencyrecord component
-