Package org.ek9lang.compiler.support
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 org.ek9lang.compiler.support.CommonFactory
aggregateManipulator, checkContextNotNull, parsedModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureTextBodyIsInSuper
(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) Create a new aggregate that represents an EK9 text body - this is represented by a method.Methods inherited from class org.ek9lang.compiler.support.CommonFactory
configureAggregate, configureSymbol, createAndRegisterParameterisedSymbols, getAggregateFactory, getDefaultOperatorInitializer, getDefaultOperatorSymbolInitializer
-
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. -
newTextBody
Create a new aggregate that represents an EK9 text body - this is represented by a method. -
ensureTextBodyIsInSuper
Ensures that any method in a specific text block is always added to the base text for that component.
-