java.lang.Object
java.lang.Record
org.aya.tyck.tycker.TeleTycker.Default
- All Implemented Interfaces:
Contextful,TeleTycker,TeleTycker.Impl
- Enclosing interface:
TeleTycker
public static record TeleTycker.Default(@NotNull ExprTycker tycker)
extends Record
implements TeleTycker.Impl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.tyck.tycker.TeleTycker
TeleTycker.Con, TeleTycker.Default, TeleTycker.Impl -
Constructor Summary
ConstructorsConstructorDescriptionDefault(@NotNull ExprTycker tycker) Creates an instance of aDefaultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.syntax.core.term.TermcheckType(@NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> typeExpr) Tyck a expr that is expected to be a typefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull ExprTyckertycker()Returns the value of thetyckerrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.tyck.tycker.Contextful
freshMeta, generatePi, mockTerm, subscoped, withMethods inherited from interface org.aya.tyck.tycker.TeleTycker
checkSignature, checkTele, checkTeleFreeMethods inherited from interface org.aya.tyck.tycker.TeleTycker.Impl
localCtx, setLocalCtx
-
Constructor Details
-
Default
Creates an instance of aDefaultrecord class.- Parameters:
tycker- the value for thetyckerrecord component
-
-
Method Details
-
checkType
@NotNull public @NotNull org.aya.syntax.core.term.Term checkType(@NotNull @NotNull org.aya.util.error.WithPos<org.aya.syntax.concrete.Expr> typeExpr) Description copied from interface:TeleTyckerTyck a expr that is expected to be a type- Specified by:
checkTypein interfaceTeleTycker- Returns:
- well-typed type or
ErrorTerm
-
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). -
tycker
Returns the value of thetyckerrecord component.- Specified by:
tyckerin interfaceTeleTycker.Impl- Returns:
- the value of the
tyckerrecord component
-