Package jetbrains.mps.generator
Class GenerationSessionContext
- java.lang.Object
 - 
- jetbrains.mps.generator.GenerationSessionContext
 
 
- 
public class GenerationSessionContext extends Object
Available fromITemplateGenerator.getGeneratorSessionContext(). Generally shall not get exposed in generated code, however there are templates that cast genContext to TemplateQueryContext and access ITemplateGenerator from there, with subsequent access to this class (e.g. bl.java.closures - those under BL, not that standalone). Igor Alshannikov Sep 19, 2005 
- 
- 
Constructor Summary
Constructors Constructor Description GenerationSessionContext(GenerationSessionContext prevContext)copy cons for each major step.GenerationSessionContext(GenControllerContext environment, TransientModelsModule transientModule, GenerationSessionLogger logger, SModel inputModel) 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
GenerationSessionContext
public GenerationSessionContext(GenControllerContext environment, TransientModelsModule transientModule, GenerationSessionLogger logger, SModel inputModel)
 
- 
GenerationSessionContext
public GenerationSessionContext(@NotNull GenerationSessionContext prevContext)
copy cons for each major step. Nothing but an odd way to clear step and transient objects 
 - 
 
- 
Method Detail
- 
clearTransientObjects
public void clearTransientObjects()
 
- 
getOriginalInputModel
public SModel getOriginalInputModel()
 
- 
getModule
@NotNull public TransientModelsModule getModule()
 
- 
getRepository
@Deprecated public SRepository getRepository()
Deprecated.Transitional access to SRepository. Likely, the code that needs a repository shall get refactored not to use one. Contract is questionable, provided we head towards distinct repository for transient models. For the time being, this repository corresponds to generator's environment, e.g. project it's run from. 
- 
createUniqueName
public String createUniqueName(String roughName, SNode contextNode, SNode inputNode)
 
- 
createIndexedName
public String createIndexedName(String baseName, SNode contextNode, boolean noIndexForFirst)
 
- 
clearCopiedRootsSet
public void clearCopiedRootsSet()
 
- 
registerCopiedRoot
public void registerCopiedRoot(SNode outputRootNode)
 
- 
isCopiedRoot
public boolean isCopiedRoot(SNode inputNode)
 
- 
getGenerationOptions
public GenerationOptions getGenerationOptions()
 
- 
getLogger
public IGeneratorLogger getLogger()
- Returns:
 - never 
null 
 
- 
getCrossModelEnvironment
public CrossModelEnvironment getCrossModelEnvironment()
- Returns:
 - never 
null 
 
- 
getTraceSession
@Nullable public TraceFacility getTraceSession()
 
 - 
 
 -