java.lang.Object
java.lang.Record
org.aya.concrete.Expr.NamedArg
- All Implemented Interfaces:
AyaDocile,org.aya.util.binop.BinOpParser.Elem<Expr>,org.aya.util.error.SourceNode
- Enclosing interface:
Expr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Expr.NamedArgfinal 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.@Nullable Stringname()Returns the value of thenamerecord component.@NotNull org.aya.util.error.SourcePos@NotNull Exprterm()Returns the value of thetermrecord component.@NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.distill.DistillerOptions options) final StringtoString()Returns a string representation of this record class.@NotNull Expr.NamedArgMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
Constructor Details
-
NamedArg
-
NamedArg
Creates an instance of aNamedArgrecord class.- Parameters:
explicit- the value for theexplicitrecord componentname- the value for thenamerecord componentterm- the value for thetermrecord component
-
-
Method Details
-
update
-
descent
@NotNull public @NotNull Expr.NamedArg descent(@NotNull @NotNull Function<@NotNull Expr, @NotNull Expr> f) -
toDoc
@NotNull public @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()- Specified by:
sourcePosin interfaceorg.aya.util.error.SourceNode
-
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 '=='. -
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Specified by:
explicitin interfaceorg.aya.util.binop.BinOpParser.Elem<Expr>- Returns:
- the value of the
explicitrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
term
Returns the value of thetermrecord component.- Specified by:
termin interfaceorg.aya.util.binop.BinOpParser.Elem<Expr>- Returns:
- the value of the
termrecord component
-