Package jetbrains.mps.generator.runtime
Interface TemplateModel2
- 
- All Superinterfaces:
 TemplateModel
- All Known Implementing Classes:
 TemplateModelInterpreted
public interface TemplateModel2 extends TemplateModel
New method to get injectedTemplateModelinterface. Kept separate for transition period so that 2018.3 could tell old generated templates from new. New are capable to load templates without actual arguments- Since:
 - 2018.3
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateDeclarationloadTemplate(TemplateDeclarationKey tdKey)This method is to replaceTemplateModel.loadTemplate(SNodeReference, Object...).- 
Methods inherited from interface jetbrains.mps.generator.runtime.TemplateModel
getConfigurations, getLongName, getModule, getQueryProvider, getSModelReference, getSwitches, loadTemplate 
 - 
 
 - 
 
- 
- 
Method Detail
- 
loadTemplate
@Nullable TemplateDeclaration loadTemplate(TemplateDeclarationKey tdKey)
This method is to replaceTemplateModel.loadTemplate(SNodeReference, Object...). TemplateModel implementation is advised though not required to cache supplied TemplateDeclaration instances.- Parameters:
 tdKey- identity of template declaration to load- Returns:
 - null if no template with the supplied identity found
 
 
 - 
 
 -