Class TextFactory
java.lang.Object
org.ek9lang.compiler.support.CommonFactory
org.ek9lang.compiler.support.TextFactory
Deals with the creation of Text parts from the EK9 language.
-
Field Summary
Fields inherited from class CommonFactory
aggregateManipulator, checkContextNotNull, parsedModule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidensureTextBodyIsInSuper(MethodSymbol textMethodSymbol) Ensures that any method in a specific text block is always added to the base text for that component.newText(EK9Parser.TextDeclarationContext ctx, String forLanguage) Create a new aggregate that represents EK9 text construct.newTextBody(EK9Parser.TextBodyDeclarationContext ctx, IScope scope) static StringvariantNameOf(String baseName, String language) THE name of a text's generated locale variant:_Base_lang.
-
Constructor Details
-
TextFactory
TextFactory(ParsedModule parsedModule)
-
-
Method Details
-
newText
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
-
newTextBody
-
ensureTextBodyIsInSuper
Ensures that any method in a specific text block is always added to the base text for that component.
-