Class IsSetEvaluationCreator
java.lang.Object
org.ek9lang.compiler.phase7.support.IsSetEvaluationCreator
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.
-
Constructor Summary
ConstructorsConstructorDescriptionIsSetEvaluationCreator
(IsSetCallDetailsCreator isSetCallDetailsCreator, VariableMemoryManagement variableMemoryManagement) -
Method Summary
-
Constructor Details
-
IsSetEvaluationCreator
public IsSetEvaluationCreator(IsSetCallDetailsCreator isSetCallDetailsCreator, VariableMemoryManagement variableMemoryManagement)
-
-
Method Details
-
apply
public List<IRInstr> apply(String operandVariable, String operandType, VariableDetails resultDetails) Creates _isSet() method call instructions.- Parameters:
operandVariable
- The variable to call _isSet() onoperandType
- The type of the operandresultDetails
- The result variable details- Returns:
- List of IR instructions for the _isSet() call
-