java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Field
- Record Components:
resolvedField- will be modified during tycking for LSP to function properly.
- Enclosing interface:
Expr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>>bindings()Returns the value of thebindingsrecord component.@NotNull Exprbody()Returns the value of thebodyrecord component.@NotNull Expr.Fielddescent(@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 org.aya.util.error.WithPos<String>name()Returns the value of thenamerecord component.@NotNull kala.value.MutableValue<AnyVar>Returns the value of theresolvedFieldrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Expr.Field
-
Constructor Details
-
Field
public Field(@NotNull @NotNull org.aya.util.error.WithPos<String> name, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>> bindings, @NotNull @NotNull Expr body, @NotNull @NotNull kala.value.MutableValue<AnyVar> resolvedField) Creates an instance of aFieldrecord class.- Parameters:
name- the value for thenamerecord componentbindings- the value for thebindingsrecord componentbody- the value for thebodyrecord componentresolvedField- the value for theresolvedFieldrecord component
-
-
Method Details
-
update
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
bindings
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>> bindings()Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
resolvedField
Returns the value of theresolvedFieldrecord component.- Returns:
- the value of the
resolvedFieldrecord component
-