Class TextFactory

java.lang.Object
org.ek9lang.compiler.support.CommonFactory
org.ek9lang.compiler.support.TextFactory

class TextFactory extends CommonFactory
Deals with the creation of Text parts from the EK9 language.
  • Constructor Details

  • Method Details

    • newText

      public AggregateSymbol newText(EK9Parser.TextDeclarationContext ctx, String forLanguage)
      Create a new aggregate that represents EK9 text construct. Note that this also creates a common base for all text with the same name. It ensures that all methods are added to that common base. Then we can check if all those methods on the common base are also defined in each and every concrete language text aggregate.
    • variantNameOf

      public static String variantNameOf(String baseName, String language)
      THE name of a text's generated locale variant: _Base_lang. Hidden, so it cannot be written in EK9 source and cannot collide with anything a developer names.
    • newTextBody

      public MethodSymbol newTextBody(EK9Parser.TextBodyDeclarationContext ctx, IScope scope)
    • ensureTextBodyIsInSuper

      public void ensureTextBodyIsInSuper(MethodSymbol textMethodSymbol)
      Ensures that any method in a specific text block is always added to the base text for that component.