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.
    • newTextBody

      public MethodSymbol newTextBody(EK9Parser.TextBodyDeclarationContext ctx, IScope scope)
      Create a new aggregate that represents an EK9 text body - this is represented by a method.
    • 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.