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
debugInfoCreator, instructionBuilder, stackContext, typeNameOrException -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractGenerator
createTempVariable, createTempVariableFromContext, extractReturnType, getRecordedSymbolOrException, processBlockStatements, validateNoPreFlowStatement, validateStatementFormOnly
-
Constructor Details
-
LiteralGenerator
LiteralGenerator(IRInstructionBuilder instructionBuilder)
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<LiteralProcessingDetails, List<IRInstr>>
-