Package jetbrains.mps.text.impl
Class ModelOutline
- java.lang.Object
 - 
- jetbrains.mps.text.impl.ModelOutline
 
 
- 
- All Implemented Interfaces:
 TextGenModelOutline
public final class ModelOutline extends Object implements TextGenModelOutline
 
- 
- 
Constructor Summary
Constructors Constructor Description ModelOutline(SModel model) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SModelgetModel()List<TextUnit>getUnits()voidregisterTextUnit(String unitName, String unitPath, Charset encoding, SNode... input)Complete set of options to construct a text unit.voidregisterTextUnit(TextUnit textUnit)mechanism to tell what unit to generate- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface jetbrains.mps.text.rt.TextGenModelOutline
registerTextUnit, registerTextUnit, registerTextUnit 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getModel
@NotNull public SModel getModel()
- Specified by:
 getModelin interfaceTextGenModelOutline- Returns:
 - model we build outline for
 
 
- 
registerTextUnit
public void registerTextUnit(@NotNull TextUnit textUnit)
Description copied from interface:TextGenModelOutlinemechanism to tell what unit to generate- Specified by:
 registerTextUnitin interfaceTextGenModelOutline- Parameters:
 textUnit- text to generate
 
- 
registerTextUnit
public void registerTextUnit(@NotNull String unitName, @Nullable String unitPath, @Nullable Charset encoding, SNode... input)
Description copied from interface:TextGenModelOutlineComplete set of options to construct a text unit. XXX perhaps, worth to add UnitBuilder to stop growing list of parameters.TextGenModelOutline.registerTextUnit(String, SNode...)alternative with an optional path and encoding- Specified by:
 registerTextUnitin interfaceTextGenModelOutline- Parameters:
 unitName- name of the unitunitPath- path to the unit, defaults to qualified model name unless specifiedencoding-nullindicates use default
 
 - 
 
 -