Record Class ConceptualAccess.OrderingUse

java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.ConceptualAccess.OrderingUse
Record Components:
type - the type as the body names it, still on the conceptual parameters
kind - how it is asked
operator - the operator the use resolved to on type, for ConceptualAccess.OrderingKind.OPERATOR_CALL; else null. The operator itself, never only its name: a type may declare a hand-written < taking an Integer beside the bare default operator's < taking itself, and only the overload the body called may be judged where the parameters are replaced.
Enclosing class:
ConceptualAccess

public static record ConceptualAccess.OrderingUse(ISymbol type, ConceptualAccess.OrderingKind kind, MethodSymbol operator) extends Record
One ordering the generic's body asks of a type built on its type parameters.
  • Constructor Details

    • OrderingUse

      public OrderingUse(ISymbol type, ConceptualAccess.OrderingKind kind, MethodSymbol operator)
      Creates an instance of a OrderingUse record class.
      Parameters:
      type - the value for the type record component
      kind - the value for the kind record component
      operator - the value for the operator record component
  • Method Details

    • 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.
    • type

      public ISymbol type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • operator

      public MethodSymbol operator()
      Returns the value of the operator record component.
      Returns:
      the value of the operator record component