Module aya.base

Record Class TeleTycker.Con

java.lang.Object
java.lang.Record
org.aya.tyck.tycker.TeleTycker.Con
All Implemented Interfaces:
Contextful, TeleTycker, TeleTycker.Impl
Enclosing interface:
TeleTycker

public static record TeleTycker.Con(@NotNull ExprTycker tycker, @NotNull org.aya.syntax.core.term.SortTerm dataResult) extends Record implements TeleTycker.Impl
  • Constructor Details

    • Con

      public Con(@NotNull @NotNull ExprTycker tycker, @NotNull @NotNull org.aya.syntax.core.term.SortTerm dataResult)
      Creates an instance of a Con record class.
      Parameters:
      tycker - the value for the tycker record component
      dataResult - the value for the dataResult record 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: TeleTycker
      Tyck a expr that is expected to be a type
      Specified by:
      checkType in interface TeleTycker
      Returns:
      well-typed type or ErrorTerm
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tycker

      @NotNull public @NotNull ExprTycker tycker()
      Returns the value of the tycker record component.
      Specified by:
      tycker in interface TeleTycker.Impl
      Returns:
      the value of the tycker record component
    • dataResult

      @NotNull public @NotNull org.aya.syntax.core.term.SortTerm dataResult()
      Returns the value of the dataResult record component.
      Returns:
      the value of the dataResult record component