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
ConstructorsConstructorDescriptionParam(@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 aParamrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Expr.Paramfinal booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.@NotNull LocalVarref()Returns the value of therefrecord component.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.kala.value.MutableValue<ExprTycker.Result>theCore()Returns the value of thetheCorerecord component.final StringtoString()Returns a string representation of this record class.@NotNull Exprtype()Returns the value of thetyperecord component.@NotNull Expr.ParamMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.concrete.Expr.WithTerm
core
-
Constructor Details
-
Param
-
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 aParamrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentref- the value for therefrecord componenttype- the value for thetyperecord componentexplicit- the value for theexplicitrecord componenttheCore- the value for thetheCorerecord component
-
-
Method Details
-
update
-
descent
@NotNull public @NotNull Expr.Param descent(@NotNull @NotNull Function<@NotNull Expr, @NotNull Expr> f) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
ref
Returns the value of therefrecord component. -
type
Returns the value of thetyperecord component. -
explicit
public boolean explicit()Returns the value of theexplicitrecord component. -
theCore
Returns the value of thetheCorerecord component.- Specified by:
theCorein interfaceExpr.WithTerm- Returns:
- the value of the
theCorerecord component
-