Module aya.base

Record Class MetaLitTerm

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

public record MetaLitTerm(@NotNull org.aya.util.error.SourcePos sourcePos, @NotNull Object repr, @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef,ShapeRecognition>> candidates, @NotNull Term type) extends Record implements Term
  • Constructor Details

    • MetaLitTerm

      public MetaLitTerm(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull @NotNull Object repr, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef,ShapeRecognition>> candidates, @NotNull @NotNull Term type)
      Creates an instance of a MetaLitTerm record class.
      Parameters:
      sourcePos - the value for the sourcePos record component
      repr - the value for the repr record component
      candidates - the value for the candidates record component
      type - the value for the type record component
  • Method Details

    • inline

      @NotNull public @NotNull Term inline()
    • 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.
    • sourcePos

      @NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()
      Returns the value of the sourcePos record component.
      Returns:
      the value of the sourcePos record component
    • repr

      @NotNull public @NotNull Object repr()
      Returns the value of the repr record component.
      Returns:
      the value of the repr record component
    • candidates

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<kala.tuple.Tuple2<GenericDef,ShapeRecognition>> candidates()
      Returns the value of the candidates record component.
      Returns:
      the value of the candidates record component
    • type

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