Class TextBaseDfnGenerator
java.lang.Object
org.ek9lang.compiler.phase7.AbstractDfnGenerator
org.ek9lang.compiler.phase7.TextBaseDfnGenerator
- All Implemented Interfaces:
Function<AggregateSymbol, IRConstruct>
final class TextBaseDfnGenerator
extends AbstractDfnGenerator
implements Function<AggregateSymbol, IRConstruct>
Creates the IR Construct for the abstract base text class.
The abstract base text class (e.g., "WelcomePageText") is synthesized by TextFactory and doesn't have a parse context. It contains:
- Abstract methods (cloned from locale variants, no bodies)
- A constructor taking String (locale)
- c_init and i_init operations
Locale variants (e.g., "WelcomePageText_en_GB") extend this base class and provide concrete implementations for the abstract methods.
-
Field Summary
Fields inherited from class AbstractDfnGenerator
generators, notImplicitSuper, operationDfnGenerator, stackContext, voidStr -
Constructor Summary
ConstructorsConstructorDescriptionTextBaseDfnGenerator(IRGenerationContext stackContext) Constructor using stack context - the single source of state. -
Method Summary
Methods inherited from class AbstractDfnGenerator
createDebugInfoCreator, createInitOperation, createInstanceInitOperation, getParsedModule, newPerConstructContext, newSyntheticInitOperation, processAsMethodOrOperator, processPropertiesForInstanceInit, processSyntheticConstructor
-
Constructor Details
-
TextBaseDfnGenerator
TextBaseDfnGenerator(IRGenerationContext stackContext) Constructor using stack context - the single source of state.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<AggregateSymbol, IRConstruct>
-