Class LiteralGenerator
java.lang.Object
org.ek9lang.compiler.phase7.generator.AbstractGenerator
org.ek9lang.compiler.phase7.generator.LiteralGenerator
- All Implemented Interfaces:
Function<LiteralProcessingDetails, List<IRInstr>>
final class LiteralGenerator
extends AbstractGenerator
implements Function<LiteralProcessingDetails, List<IRInstr>>
Deals with generating the correct IR Instructions for processing any form of literal.
Memory management is handled by the higher-level expression processor.
MIGRATED: Now uses IRInstructionBuilder with original IRContext access via stack infrastructure.
-
Field Summary
Fields inherited from class AbstractGenerator
stackContext, symbolTypeOrException, typeNameOrException, variableNameForIR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractGenerator
addCoverageProbe, createTempVariable, createTempVariableFromContext, getRecordedSymbolOrException, processBlockStatements, processBlockStatements, resultVariableOrTemp
-
Constructor Details
-
LiteralGenerator
LiteralGenerator(IRGenerationContext stackContext)
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<LiteralProcessingDetails, List<IRInstr>>
-