Record Class EnumPrimitiveOperatorGenerator.Shape

java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.synthesis.EnumPrimitiveOperatorGenerator.Shape
Enclosing class:
EnumPrimitiveOperatorGenerator

static record EnumPrimitiveOperatorGenerator.Shape(String methodName, String returnTypeName, EnumPrimitiveOperatorGenerator.Guard guard, String field, String primitiveType, String ek9TypeName, EnumPrimitiveOperatorGenerator.Call call) extends Record
One row of the table: the operator, its return type, the guard, the primitive field loaded from each receiver, how that primitive converts to an EK9 type, and the optional call on the converted value.
  • Constructor Details

    • Shape

      Shape(String methodName, String returnTypeName, EnumPrimitiveOperatorGenerator.Guard guard, String field, String primitiveType, String ek9TypeName, EnumPrimitiveOperatorGenerator.Call call)
      Creates an instance of a Shape record class.
      Parameters:
      methodName - the value for the methodName record component
      returnTypeName - the value for the returnTypeName record component
      guard - the value for the guard record component
      field - the value for the field record component
      primitiveType - the value for the primitiveType record component
      ek9TypeName - the value for the ek9TypeName record component
      call - the value for the call 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.
    • methodName

      public String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • returnTypeName

      public String returnTypeName()
      Returns the value of the returnTypeName record component.
      Returns:
      the value of the returnTypeName record component
    • guard

      Returns the value of the guard record component.
      Returns:
      the value of the guard record component
    • field

      public String field()
      Returns the value of the field record component.
      Returns:
      the value of the field record component
    • primitiveType

      public String primitiveType()
      Returns the value of the primitiveType record component.
      Returns:
      the value of the primitiveType record component
    • ek9TypeName

      public String ek9TypeName()
      Returns the value of the ek9TypeName record component.
      Returns:
      the value of the ek9TypeName record component
    • call

      Returns the value of the call record component.
      Returns:
      the value of the call record component