java.lang.Object
java.lang.Record
org.aya.cli.single.SingleAyaFile.Factory
- All Implemented Interfaces:
org.aya.concrete.GenericAyaFile.Factory
- Enclosing interface:
SingleAyaFile
public static record SingleAyaFile.Factory(@NotNull org.aya.util.reporter.Reporter reporter)
extends Record
implements org.aya.concrete.GenericAyaFile.Factory
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(@NotNull org.aya.util.reporter.Reporter reporter) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull SingleAyaFilecreateAyaFile(@NotNull org.aya.util.error.SourceFileLocator locator, @NotNull Path path) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.util.reporter.Reporterreporter()Returns the value of thereporterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(@NotNull @NotNull org.aya.util.reporter.Reporter reporter) Creates an instance of aFactoryrecord class.- Parameters:
reporter- the value for thereporterrecord component
-
-
Method Details
-
createAyaFile
@NotNull public @NotNull SingleAyaFile createAyaFile(@NotNull @NotNull org.aya.util.error.SourceFileLocator locator, @NotNull @NotNull Path path) throws IOException - Specified by:
createAyaFilein interfaceorg.aya.concrete.GenericAyaFile.Factory- Throws:
IOException
-
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). -
reporter
@NotNull public @NotNull org.aya.util.reporter.Reporter reporter()Returns the value of thereporterrecord component.- Returns:
- the value of the
reporterrecord component
-