Class AbstractShortCircuitGenerator
java.lang.Object
org.ek9lang.compiler.phase7.AbstractShortCircuitGenerator
- All Implemented Interfaces:
Function<ExprProcessingDetails,
List<IRInstr>>
- Direct Known Subclasses:
ShortCircuitAndGenerator
,ShortCircuitOrGenerator
abstract class AbstractShortCircuitGenerator
extends Object
implements Function<ExprProcessingDetails,List<IRInstr>>
Both AND/OR are very similar in processing, the only real differences are:
What operation to call and the op code to generate.
What operation to call and the op code to generate.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractShortCircuitGenerator
(IRContext context, RecordExprProcessing recordExprProcessing) -
Method Summary
Modifier and TypeMethodDescriptionapply
(ExprProcessingDetails details) protected abstract CallDetails
getCallDetails
(String lhsVariable, String rhsVariable) protected abstract Function
<LogicalDetails, IRInstr>
-
Constructor Details
-
AbstractShortCircuitGenerator
AbstractShortCircuitGenerator(IRContext context, RecordExprProcessing recordExprProcessing)
-
-
Method Details
-
getCallDetails
-
getLogicalOperationInstr
-
apply
- Specified by:
apply
in interfaceFunction<ExprProcessingDetails,
List<IRInstr>>
-