Class IsSetEvaluationCreator

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

public final class IsSetEvaluationCreator extends Object
Creates evaluation instructions for _isSet() method calls. Only creates the _isSet() call and result memory management. Caller is responsible for loading the operand if needed.

Whether the call is an interface call (a trait operand needs INVOKEINTERFACE) is decided from the operand by IsSetCallDetailsCreator, never passed in.

  • Constructor Details

  • Method Details

    • apply

      public List<IRInstr> apply(String operandVariable, ISymbol operandSymbol, VariableDetails resultDetails)
      Creates _isSet() method call instructions.
      Parameters:
      operandVariable - The variable to call _isSet() on
      operandSymbol - The operand symbol - its type names the target, supplies the call metadata and decides whether the call is an interface call
      resultDetails - The result variable details
      Returns:
      List of IR instructions for the _isSet() call