Package jetbrains.mps.text.rt
Interface TextGenModelOutline
- 
- All Known Implementing Classes:
 ModelOutline
public interface TextGenModelOutlineWORK IN PROGRESS FIXME document Tells the engine what the model output would look like (from TextGen perspective). Lives in j.m.text.rt as it is deemed to be exposed as part of TextGenDescriptor RT API.- Since:
 - 3.3
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SModelgetModel()voidregisterTextUnit(String unitName, String unitPath, Charset encoding, SNode... input)Complete set of options to construct a text unit.default voidregisterTextUnit(String unitName, String path, SNode... input)default voidregisterTextUnit(String unitName, Charset encoding, SNode... input)registerTextUnit(String, SNode...)alternative with explicit encodingdefault voidregisterTextUnit(String unitName, SNode... input)mechanism to tell what unit to generatevoidregisterTextUnit(TextUnit textUnit)mechanism to tell what unit to generate 
 - 
 
- 
- 
Method Detail
- 
registerTextUnit
void registerTextUnit(@NotNull TextUnit textUnit)
mechanism to tell what unit to generate- Parameters:
 textUnit- text to generate
 
- 
registerTextUnit
default void registerTextUnit(@NotNull String unitName, SNode... input)
mechanism to tell what unit to generate- Parameters:
 unitName- name of the unitinput- sequence of inputs, primary input first. FIXME could be empty? Generally, why not?
 
- 
registerTextUnit
default void registerTextUnit(@NotNull String unitName, @Nullable Charset encoding, SNode... input)
registerTextUnit(String, SNode...)alternative with explicit encoding- Parameters:
 unitName- name of the unitencoding-nullindicates use defaultinput-
 
- 
registerTextUnit
default void registerTextUnit(@NotNull String unitName, @Nullable String path, SNode... input)
 
- 
registerTextUnit
void registerTextUnit(@NotNull String unitName, @Nullable String unitPath, @Nullable Charset encoding, SNode... input)
Complete set of options to construct a text unit. XXX perhaps, worth to add UnitBuilder to stop growing list of parameters.registerTextUnit(String, SNode...)alternative with an optional path and encoding- Parameters:
 unitName- name of the unitunitPath- path to the unit, defaults to qualified model name unless specifiedencoding-nullindicates use defaultinput-
 
 - 
 
 -