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 Summary
ConstructorsConstructorDescriptionShape(String methodName, String returnTypeName, EnumPrimitiveOperatorGenerator.Guard guard, String field, String primitiveType, String ek9TypeName, EnumPrimitiveOperatorGenerator.Call call) Creates an instance of aShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptioncall()Returns the value of thecallrecord component.Returns the value of theek9TypeNamerecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.guard()Returns the value of theguardrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.Returns the value of theprimitiveTyperecord component.Returns the value of thereturnTypeNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Shape
Shape(String methodName, String returnTypeName, EnumPrimitiveOperatorGenerator.Guard guard, String field, String primitiveType, String ek9TypeName, EnumPrimitiveOperatorGenerator.Call call) Creates an instance of aShaperecord class.- Parameters:
methodName- the value for themethodNamerecord componentreturnTypeName- the value for thereturnTypeNamerecord componentguard- the value for theguardrecord componentfield- the value for thefieldrecord componentprimitiveType- the value for theprimitiveTyperecord componentek9TypeName- the value for theek9TypeNamerecord componentcall- the value for thecallrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
returnTypeName
Returns the value of thereturnTypeNamerecord component.- Returns:
- the value of the
returnTypeNamerecord component
-
guard
Returns the value of theguardrecord component.- Returns:
- the value of the
guardrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
primitiveType
Returns the value of theprimitiveTyperecord component.- Returns:
- the value of the
primitiveTyperecord component
-
ek9TypeName
Returns the value of theek9TypeNamerecord component.- Returns:
- the value of the
ek9TypeNamerecord component
-
call
Returns the value of thecallrecord component.- Returns:
- the value of the
callrecord component
-