java.lang.Object
java.lang.Record
org.aya.cli.parse.FlclParser
public record FlclParser(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourceFile file, @NotNull EnumMap<FlclToken.Type,kala.collection.immutable.ImmutableSeq<String>> decls)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFlclParser(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourceFile file) FlclParser(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourceFile file, @NotNull EnumMap<FlclToken.Type, kala.collection.immutable.ImmutableSeq<String>> decls) Creates an instance of aFlclParserrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull EnumMap<FlclToken.Type, kala.collection.immutable.ImmutableSeq<String>> decls()Returns the value of thedeclsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull org.aya.util.error.SourceFilefile()Returns the value of thefilerecord component.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
-
FlclParser
public FlclParser(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourceFile file) -
FlclParser
public FlclParser(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourceFile file, @NotNull @NotNull EnumMap<FlclToken.Type, kala.collection.immutable.ImmutableSeq<String>> decls) Creates an instance of aFlclParserrecord class.- Parameters:
reporter- the value for thereporterrecord componentfile- the value for thefilerecord componentdecls- the value for thedeclsrecord component
-
-
Method Details
-
computeAst
-
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
-
file
@NotNull public @NotNull org.aya.util.error.SourceFile file()Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
decls
@NotNull public @NotNull EnumMap<FlclToken.Type,kala.collection.immutable.ImmutableSeq<String>> decls()Returns the value of thedeclsrecord component.- Returns:
- the value of the
declsrecord component
-