Package jetbrains.mps.text.rt
Interface TextGenContext
- 
- All Known Implementing Classes:
 TextGenTransitionContext
public interface TextGenContextFIXME WORK IN PROGRESS EverythingTextGenDescriptorshall know about outer world. Client code shall make no assumptions about context being the same for any time period greater than singleTextGenDescriptor.generateText(TextGenContext)call. Nested descriptors may receive brand new context instance. TODO likely shall expose TextUnit? Or it's part of TextBuffer? Technically, I'd like to keep TextBuffer independent from TextUnit. OTOH, why can't I use TextGenContext without TextUnit? It's in use with TextGenDescriptor#generateText(), which is proper place to invoke getTextUnit, but still, not 100% sure.- Since:
 - 3.3
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextBuffergetBuffer()SNodegetPrimaryInput()With transition to TextGen capable of generating text from a set of nodes instead of a single one (seeTextGenModelOutline.registerTextUnit(String, SNode...)), we still need to know the node actual TextGen code runs for. 
 - 
 
- 
- 
Method Detail
- 
getBuffer
@NotNull TextBuffer getBuffer()
- Returns:
 - text buffer associated with a 
unitbeing generated. 
 
- 
getPrimaryInput
SNode getPrimaryInput()
With transition to TextGen capable of generating text from a set of nodes instead of a single one (seeTextGenModelOutline.registerTextUnit(String, SNode...)), we still need to know the node actual TextGen code runs for.- Returns:
 - node active node being processed
 
 
 - 
 
 -