Module aya.base

Record Class OutTerm

java.lang.Object
java.lang.Record
org.aya.core.term.OutTerm
All Implemented Interfaces:
Elimination, Term, AyaDocile, org.aya.guest0x0.cubical.Restr.TermLike<Term>

public record OutTerm(@NotNull Term phi, @NotNull Term partial, @NotNull Term of) extends Record implements Elimination
See Also:
  • Constructor Details

    • OutTerm

      public OutTerm(@NotNull @NotNull Term phi, @NotNull @NotNull Term partial, @NotNull @NotNull Term of)
      Creates an instance of a OutTerm record class.
      Parameters:
      phi - the value for the phi record component
      partial - the value for the partial record component
      of - the value for the of record component
  • Method Details

    • update

      @NotNull public @NotNull Term update(@NotNull @NotNull Term phi, @NotNull @NotNull Term partial, @NotNull @NotNull Term of)
    • descent

      @NotNull public @NotNull Term descent(@NotNull @NotNull UnaryOperator<Term> f, @NotNull @NotNull UnaryOperator<Pat> g)
      Description copied from interface: Term
      Descending an operation to the term AST. NOTE: Currently we require the operation `f` to preserve:
      invalid @link
      StructCall
      , DataCall, SortTerm, Shaped.Applicable.
      Specified by:
      descent in interface Term
    • make

      @NotNull public static @NotNull Term make(@NotNull @NotNull Term phi, @NotNull @NotNull Term partial, @NotNull @NotNull Term u)
    • make

      @NotNull public static @NotNull Term make(@NotNull @NotNull OutTerm material)
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • phi

      @NotNull public @NotNull Term phi()
      Returns the value of the phi record component.
      Returns:
      the value of the phi record component
    • partial

      @NotNull public @NotNull Term partial()
      Returns the value of the partial record component.
      Returns:
      the value of the partial record component
    • of

      @NotNull public @NotNull Term of()
      Returns the value of the of record component.
      Specified by:
      of in interface Elimination
      Returns:
      the value of the of record component