java.lang.Object
java.lang.Record
org.aya.tyck.StmtTycker
public record StmtTycker(@NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder traceBuilder)
extends Record
- API Note:
- this class does not create
ExprTyckerinstances itself, but use the one passed to it.newTycker(org.aya.core.def.PrimDef.Factory, org.aya.core.repr.AyaShape.Factory)creates instances of expr tyckers.
-
Constructor Summary
ConstructorsConstructorDescriptionStmtTycker(@NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder traceBuilder) Creates an instance of aStmtTyckerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull ExprTyckernewTycker(PrimDef.Factory primFactory, AyaShape.Factory literalShapes) @NotNull org.aya.util.reporter.Reporterreporter()Returns the value of thereporterrecord component.@NotNull FnDefsimpleFn(@NotNull ExprTycker tycker, TeleDecl.FnDecl fn) final StringtoString()Returns a string representation of this record class.@Nullable Trace.BuilderReturns the value of thetraceBuilderrecord component.@NotNull GenericDeftyck(@NotNull Decl decl, @NotNull ExprTycker tycker) voidtyckHeader(@NotNull Decl decl, @NotNull ExprTycker tycker)
-
Constructor Details
-
StmtTycker
public StmtTycker(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @Nullable Trace.Builder traceBuilder) Creates an instance of aStmtTyckerrecord class.- Parameters:
reporter- the value for thereporterrecord componenttraceBuilder- the value for thetraceBuilderrecord component
-
-
Method Details
-
newTycker
@NotNull public @NotNull ExprTycker newTycker(@NotNull PrimDef.Factory primFactory, @NotNull AyaShape.Factory literalShapes) -
tyck
@NotNull public @NotNull GenericDef tyck(@NotNull @NotNull Decl decl, @NotNull @NotNull ExprTycker tycker) -
simpleFn
-
tyckHeader
-
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
-
traceBuilder
Returns the value of thetraceBuilderrecord component.- Returns:
- the value of the
traceBuilderrecord component
-