Record Class PromotionResult
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.PromotionResult
-
Constructor Summary
ConstructorsConstructorDescriptionPromotionResult
(List<String> promotedArguments, List<IRInstr> promotionInstructions) Creates an instance of aPromotionResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Get the total number of parameters that required promotion.final int
hashCode()
Returns a hash code value for this object.boolean
Check if any promotions were needed.Returns the value of thepromotedArguments
record component.Returns the value of thepromotionInstructions
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PromotionResult
Creates an instance of aPromotionResult
record class.- Parameters:
promotedArguments
- the value for thepromotedArguments
record componentpromotionInstructions
- the value for thepromotionInstructions
record component
-
-
Method Details
-
hasPromotions
public boolean hasPromotions()Check if any promotions were needed. -
getPromotionCount
public int getPromotionCount()Get the total number of parameters that required promotion. -
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)
. -
promotedArguments
-
promotionInstructions
-