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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.serde.SerDef
SerDef.Ctor, SerDef.Data, SerDef.DeserializeException, SerDef.Field, SerDef.Fn, SerDef.Prim, SerDef.QName, SerDef.SerAyaShape, SerDef.SerBind, SerDef.SerOp, SerDef.SerOpDecl, SerDef.SerRenamedOp, SerDef.SerShapeResult, SerDef.Struct -
Constructor Summary
ConstructorsConstructorDescriptionField(@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) Creates an instance of aFieldrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.control.Option<SerTerm>body()Returns the value of thebodyrecord component.booleancoerce()Returns the value of thecoercerecord component.@NotNull FieldDefde(@NotNull SerTerm.DeState state) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam>Returns the value of theownerTelerecord component.@NotNull SerTermresult()Returns the value of theresultrecord component.@NotNull SerDef.QNameself()Returns the value of theselfrecord component.@NotNull kala.collection.immutable.ImmutableSeq<SerTerm.SerParam>selfTele()Returns the value of theselfTelerecord component.@NotNull SerDef.QNamestruct()Returns the value of thestructrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aFieldrecord class.- Parameters:
struct- the value for thestructrecord componentself- the value for theselfrecord componentownerTele- the value for theownerTelerecord componentselfTele- the value for theselfTelerecord componentresult- the value for theresultrecord componentbody- the value for thebodyrecord componentcoerce- the value for thecoercerecord component
-
-
Method Details
-
de
-
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 '=='. -
struct
Returns the value of thestructrecord component.- Returns:
- the value of the
structrecord component
-
self
Returns the value of theselfrecord component.- Returns:
- the value of the
selfrecord component
-
ownerTele
Returns the value of theownerTelerecord component.- Returns:
- the value of the
ownerTelerecord component
-
selfTele
Returns the value of theselfTelerecord component.- Returns:
- the value of the
selfTelerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
coerce
public boolean coerce()Returns the value of thecoercerecord component.- Returns:
- the value of the
coercerecord component
-