java.lang.Object
java.lang.Record
org.aya.core.term.FieldTerm
- All Implemented Interfaces:
Callable,Term,AyaDocile,org.aya.guest0x0.cubical.Restr.TermLike<Term>
public record FieldTerm(@NotNull Term of, @NotNull DefVar<FieldDef,TeleDecl.StructField> ref, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> structArgs, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> fieldArgs)
extends Record
implements Callable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.term.Callable
Callable.DefCall, Callable.Factory<D extends Def,S extends Decl> Nested classes/interfaces inherited from interface org.aya.core.term.Term
Term.Matching, Term.Param -
Constructor Summary
ConstructorsConstructorDescriptionFieldTerm(@NotNull Term of, @NotNull DefVar<FieldDef, TeleDecl.StructField> ref, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> structArgs, @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> fieldArgs) Creates an instance of aFieldTermrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<Term>>args()final booleanIndicates whether some other object is "equal to" this one.@NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>>Returns the value of thefieldArgsrecord component.final inthashCode()Returns a hash code value for this object.@NotNull Termof()Returns the value of theofrecord component.@NotNull DefVar<FieldDef,TeleDecl.StructField> ref()Returns the value of therefrecord component.@NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>>Returns the value of thestructArgsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDocMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormulaMethods inherited from interface org.aya.core.term.Term
computeSort, computeType, descent, findUsages, freezeHoles, lift, normalize, rename, scopeCheck, subst, subst, subst, subst, toDoc
-
Constructor Details
-
FieldTerm
public FieldTerm(@NotNull @NotNull Term of, @NotNull @NotNull DefVar<FieldDef, TeleDecl.StructField> ref, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> structArgs, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> fieldArgs) Creates an instance of aFieldTermrecord class.- Parameters:
of- the value for theofrecord componentref- the value for therefrecord componentstructArgs- the value for thestructArgsrecord componentfieldArgs- the value for thefieldArgsrecord component
-
-
Method Details
-
args
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<Term>> args() -
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). -
of
Returns the value of theofrecord component.- Returns:
- the value of the
ofrecord component
-
ref
Returns the value of therefrecord component. -
structArgs
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> structArgs()Returns the value of thestructArgsrecord component.- Returns:
- the value of the
structArgsrecord component
-
fieldArgs
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<@NotNull org.aya.util.Arg<@NotNull Term>> fieldArgs()Returns the value of thefieldArgsrecord component.- Returns:
- the value of the
fieldArgsrecord component
-