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 aPromotionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intGet the total number of parameters that required promotion.final inthashCode()Returns a hash code value for this object.booleanCheck if any promotions were needed.Returns the value of thepromotedArgumentsrecord component.Returns the value of thepromotionInstructionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PromotionResult
Creates an instance of aPromotionResultrecord class.- Parameters:
promotedArguments- the value for thepromotedArgumentsrecord componentpromotionInstructions- the value for thepromotionInstructionsrecord 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
-