Class BooleanNotEvaluationCreator

java.lang.Object
org.ek9lang.compiler.phase7.support.BooleanNotEvaluationCreator

public final class BooleanNotEvaluationCreator extends Object
Creates evaluation instructions for Boolean._not() method call. Inverts a boolean value by calling the _not() operator (~).
  • Constructor Details

  • Method Details

    • apply

      public List<IRInstr> apply(String booleanVariable, VariableDetails resultDetails)
      Creates Boolean._not() method call instructions.
      Parameters:
      booleanVariable - The boolean variable to invert
      resultDetails - The result variable details
      Returns:
      List of IR instructions for the _not() call