java.lang.Object
java.lang.Record
org.aya.tyck.StmtTycker
- All Implemented Interfaces:
Problematic
public record StmtTycker(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull ShapeFactory shapeFactory, @NotNull PrimFactory primFactory)
extends Record
implements Problematic
-
Constructor Summary
ConstructorsConstructorDescriptionStmtTycker(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull ShapeFactory shapeFactory, @NotNull PrimFactory primFactory) Creates an instance of aStmtTyckerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.syntax.core.def.TyckDefcheck(org.aya.syntax.concrete.stmt.decl.Decl predecl) checkHeader(@NotNull org.aya.syntax.concrete.stmt.decl.Decl decl) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PrimFactoryReturns the value of theprimFactoryrecord component.@NotNull org.aya.util.reporter.Reporterreporter()Returns the value of thereporterrecord component.@NotNull ShapeFactoryReturns the value of theshapeFactoryrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, fail
-
Constructor Details
-
StmtTycker
public StmtTycker(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull ShapeFactory shapeFactory, @NotNull @NotNull PrimFactory primFactory) Creates an instance of aStmtTyckerrecord class.- Parameters:
reporter- the value for thereporterrecord componentshapeFactory- the value for theshapeFactoryrecord componentprimFactory- the value for theprimFactoryrecord component
-
-
Method Details
-
check
@NotNull public @NotNull org.aya.syntax.core.def.TyckDef check(org.aya.syntax.concrete.stmt.decl.Decl predecl) -
checkHeader
-
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.- Specified by:
reporterin interfaceProblematic- Returns:
- the value of the
reporterrecord component
-
shapeFactory
Returns the value of theshapeFactoryrecord component.- Returns:
- the value of the
shapeFactoryrecord component
-
primFactory
Returns the value of theprimFactoryrecord component.- Returns:
- the value of the
primFactoryrecord component
-