Module aya.base

Record Class Expr.Param

java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Param
All Implemented Interfaces:
Expr.WithTerm, AyaDocile, ParamLike<Expr>, org.aya.util.error.SourceNode
Enclosing interface:
Expr

public static record Expr.Param(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull LocalVar ref, @NotNull Expr type, boolean explicit, kala.value.MutableValue<ExprTycker.Result> theCore) extends Record implements ParamLike<Expr>, org.aya.util.error.SourceNode, Expr.WithTerm
  • Constructor Summary

    Constructors
    Constructor
    Description
    Param(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull LocalVar var, boolean explicit)
     
    Param(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull LocalVar var, @NotNull Expr type, boolean explicit)
     
    Param(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull LocalVar ref, @NotNull Expr type, boolean explicit, kala.value.MutableValue<ExprTycker.Result> theCore)
    Creates an instance of a Param record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Expr.Param
    descent(@NotNull Function<@NotNull Expr,@NotNull Expr> f)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the explicit record component.
    final int
    Returns a hash code value for this object.
    @NotNull LocalVar
    ref()
    Returns the value of the ref record component.
    @NotNull org.aya.util.error.SourcePos
    Returns the value of the sourcePos record component.
    kala.value.MutableValue<ExprTycker.Result>
    Returns the value of the theCore record component.
    final String
    Returns a string representation of this record class.
    @NotNull Expr
    Returns the value of the type record component.
    @NotNull Expr.Param
    update(@NotNull Expr type)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.aya.generic.AyaDocile

    debuggerOnlyToDoc

    Methods inherited from interface org.aya.concrete.Expr.WithTerm

    core

    Methods inherited from interface org.aya.generic.ParamLike

    nameDoc, toDoc, toDoc
  • Constructor Details

    • Param

      public Param(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull LocalVar var, @NotNull @NotNull Expr type, boolean explicit)
    • Param

      public Param(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull LocalVar var, boolean explicit)
    • Param

      public Param(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull LocalVar ref, @NotNull @NotNull Expr type, boolean explicit, kala.value.MutableValue<ExprTycker.Result> theCore)
      Creates an instance of a Param record class.
      Parameters:
      sourcePos - the value for the sourcePos record component
      ref - the value for the ref record component
      type - the value for the type record component
      explicit - the value for the explicit record component
      theCore - the value for the theCore record component
  • Method Details

    • update

      @NotNull public @NotNull Expr.Param update(@NotNull @NotNull Expr type)
    • descent

      @NotNull public @NotNull Expr.Param descent(@NotNull @NotNull Function<@NotNull Expr,@NotNull Expr> f)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • sourcePos

      @NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()
      Returns the value of the sourcePos record component.
      Specified by:
      sourcePos in interface org.aya.util.error.SourceNode
      Returns:
      the value of the sourcePos record component
    • ref

      @NotNull public @NotNull LocalVar ref()
      Returns the value of the ref record component.
      Specified by:
      ref in interface ParamLike<Expr>
      Returns:
      the value of the ref record component
    • type

      @NotNull public @NotNull Expr type()
      Returns the value of the type record component.
      Specified by:
      type in interface ParamLike<Expr>
      Returns:
      the value of the type record component
    • explicit

      public boolean explicit()
      Returns the value of the explicit record component.
      Specified by:
      explicit in interface ParamLike<Expr>
      Returns:
      the value of the explicit record component
    • theCore

      public kala.value.MutableValue<ExprTycker.Result> theCore()
      Returns the value of the theCore record component.
      Specified by:
      theCore in interface Expr.WithTerm
      Returns:
      the value of the theCore record component