java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Field<Term>
- Record Components:
resolvedField- will be modified during tycking for LSP to function properly.
- Enclosing interface:
Expr
public static record Expr.Field<Term extends AyaDocile>(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.util.error.WithPos<String> name, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>> bindings, Term extends AyaDocile body, @NotNull kala.value.MutableValue<AnyVar> resolvedField)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionField(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.util.error.WithPos<String> name, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>> bindings, Term body, @NotNull kala.value.MutableValue<AnyVar> resolvedField) Creates an instance of aFieldrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>>bindings()Returns the value of thebindingsrecord component.body()Returns the value of thebodyrecord component.@NotNull Expr.Field<Term>descent(@NotNull UnaryOperator<@NotNull Term> 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.@NotNull org.aya.util.error.SourcePosReturns the value of thesourcePosrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Expr.Field<Term>
-
Constructor Details
-
Field
public Field(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull org.aya.util.error.WithPos<String> name, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.error.WithPos<LocalVar>> bindings, @NotNull Term body, @NotNull @NotNull kala.value.MutableValue<AnyVar> resolvedField) Creates an instance of aFieldrecord class.- Parameters:
sourcePos- the value for thesourcePosrecord componentname- 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). -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()Returns the value of thesourcePosrecord component.- Returns:
- the value of the
sourcePosrecord component
-
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
-