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.
Whether the call is an interface call (a trait operand needs INVOKEINTERFACE) is decided from the operand by
IsSetCallDetailsCreator, never passed in.
-
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, ISymbol operandSymbol, VariableDetails resultDetails) Creates _isSet() method call instructions.- Parameters:
operandVariable- The variable to call _isSet() onoperandSymbol- The operand symbol - its type names the target, supplies the call metadata and decides whether the call is an interface callresultDetails- The result variable details- Returns:
- List of IR instructions for the _isSet() call
-