java.lang.Object
java.lang.Record
org.aya.concrete.Expr.LetBind
- All Implemented Interfaces:
org.aya.util.error.SourceNode
- Enclosing interface:
Expr
public static record Expr.LetBind(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull LocalVar bindName, @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull Expr result, @NotNull Expr definedAs)
extends Record
implements org.aya.util.error.SourceNode
-
Constructor Summary
ConstructorsConstructorDescriptionLetBind(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull LocalVar bindName, @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull Expr result, @NotNull Expr definedAs) Creates an instance of aLetBindrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalVarbindName()Returns the value of thebindNamerecord component.@NotNull ExprReturns the value of thedefinedAsrecord component.descent(@NotNull UnaryOperator<@NotNull Expr> f) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Exprresult()Returns the value of theresultrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.@NotNull kala.collection.immutable.ImmutableSeq<Expr.Param>Returns the value of thetelescoperecord component.final StringtoString()Returns a string representation of this record class.update(@NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull Expr result, @NotNull Expr definedAs)
-
Constructor Details
-
LetBind
public LetBind(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull LocalVar bindName, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull @NotNull Expr result, @NotNull @NotNull Expr definedAs) Creates an instance of aLetBindrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentbindName- the value for thebindNamerecord componenttelescope- the value for thetelescoperecord componentresult- the value for theresultrecord componentdefinedAs- the value for thedefinedAsrecord component
-
-
Method Details
-
update
@NotNull public Expr.LetBind update(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.Param> telescope, @NotNull @NotNull Expr result, @NotNull @NotNull Expr definedAs) -
descent
-
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). -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Specified by:
sourcePosin interfaceorg.aya.util.error.SourceNode- Returns:
- the value of the
sourcePosrecord component
-
bindName
Returns the value of thebindNamerecord component.- Returns:
- the value of the
bindNamerecord component
-
telescope
Returns the value of thetelescoperecord component.- Returns:
- the value of the
telescoperecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
definedAs
Returns the value of thedefinedAsrecord component.- Returns:
- the value of the
definedAsrecord component
-