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.