Module aya.base

Record Class MetaInfo.AnyType

java.lang.Object
java.lang.Record
org.aya.core.meta.MetaInfo.AnyType
All Implemented Interfaces:
MetaInfo, AyaDocile
Enclosing interface:
MetaInfo

public static record MetaInfo.AnyType() extends Record implements MetaInfo
The meta variable is a type. It should be able to appear on the RHS of a judgment.
  • Constructor Details

    • AnyType

      public AnyType()
      Creates an instance of a AnyType record class.
  • Method Details

    • result

      @Nullable public @Nullable Term result()
      Specified by:
      result in interface MetaInfo
    • isType

      public boolean isType(@NotNull @NotNull Synthesizer synthesizer)
      Specified by:
      isType in interface MetaInfo
    • toDoc

      @NotNull public @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.prettier.PrettierOptions options)
      Specified by:
      toDoc in interface AyaDocile
    • 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.
      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.