Class BooleanNotEvaluationCreator
java.lang.Object
org.ek9lang.compiler.phase7.support.BooleanNotEvaluationCreator
Creates evaluation instructions for Boolean._not() method call.
Inverts a boolean value by calling the _not() operator (~).
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanNotEvaluationCreator
(BooleanNotCallDetailsCreator booleanNotCallDetailsCreator, VariableMemoryManagement variableMemoryManagement) -
Method Summary
Modifier and TypeMethodDescriptionapply
(String booleanVariable, VariableDetails resultDetails) Creates Boolean._not() method call instructions.
-
Constructor Details
-
BooleanNotEvaluationCreator
public BooleanNotEvaluationCreator(BooleanNotCallDetailsCreator booleanNotCallDetailsCreator, VariableMemoryManagement variableMemoryManagement)
-
-
Method Details
-
apply
Creates Boolean._not() method call instructions.- Parameters:
booleanVariable
- The boolean variable to invertresultDetails
- The result variable details- Returns:
- List of IR instructions for the _not() call
-