Module aya.base

Record Class SerDef.Field

java.lang.Object
java.lang.Record
org.aya.core.serde.SerDef.Field
All Implemented Interfaces:
Serializable, SerDef
Enclosing interface:
SerDef

public static record SerDef.Field(@NotNull SerDef.QName struct, @NotNull SerDef.QName self, @NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam> ownerTele, @NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam> selfTele, @NotNull SerTerm result, @NotNull kala.control.Option<SerTerm> body, boolean coerce) extends Record implements SerDef
See Also:
  • Constructor Details

    • Field

      public Field(@NotNull @NotNull SerDef.QName struct, @NotNull @NotNull SerDef.QName self, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam> ownerTele, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam> selfTele, @NotNull @NotNull SerTerm result, @NotNull @NotNull kala.control.Option<SerTerm> body, boolean coerce)
      Creates an instance of a Field record class.
      Parameters:
      struct - the value for the struct record component
      self - the value for the self record component
      ownerTele - the value for the ownerTele record component
      selfTele - the value for the selfTele record component
      result - the value for the result record component
      body - the value for the body record component
      coerce - the value for the coerce record component
  • Method Details

    • de

      @NotNull public @NotNull FieldDef de(@NotNull SerTerm.DeState state)
      Specified by:
      de in interface SerDef
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • struct

      @NotNull public @NotNull SerDef.QName struct()
      Returns the value of the struct record component.
      Returns:
      the value of the struct record component
    • self

      @NotNull public @NotNull SerDef.QName self()
      Returns the value of the self record component.
      Returns:
      the value of the self record component
    • ownerTele

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam> ownerTele()
      Returns the value of the ownerTele record component.
      Returns:
      the value of the ownerTele record component
    • selfTele

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam> selfTele()
      Returns the value of the selfTele record component.
      Returns:
      the value of the selfTele record component
    • result

      @NotNull public @NotNull SerTerm result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • body

      @NotNull public @NotNull kala.control.Option<SerTerm> body()
      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • coerce

      public boolean coerce()
      Returns the value of the coerce record component.
      Returns:
      the value of the coerce record component