Package jetbrains.mps.generator.impl
Class TemplateIdentity
- java.lang.Object
 - 
- jetbrains.mps.generator.impl.TemplateIdentity
 
 
- 
- All Implemented Interfaces:
 TemplateDeclarationKey
public final class TemplateIdentity extends Object implements TemplateDeclarationKey
Provisional implementation ofTemplateDeclarationKeyto migrate existing uses of SNodeReference as a key to the interface.- Since:
 - 2018.3
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescribe()static TemplateDeclarationKeyfromPointer(SNodeReference template, String templateName)static TemplateDeclarationKeyfromSourceNode(SNode templateDeclarationNode)SModelReferencegetSourceModel()SNodeReferencegetSourceNode() 
 - 
 
- 
- 
Method Detail
- 
getSourceModel
public SModelReference getSourceModel()
- Specified by:
 getSourceModelin interfaceTemplateDeclarationKey- Returns:
 - mandatory identifier of a 
TemplateModel. 
 
- 
getSourceNode
public SNodeReference getSourceNode()
- Specified by:
 getSourceNodein interfaceTemplateDeclarationKey- Returns:
 - mandatory pointer to source node (i.e. 
node<TemplateDeclaration>). 
 
- 
describe
public String describe()
- Specified by:
 describein interfaceTemplateDeclarationKey
 
- 
fromSourceNode
public static TemplateDeclarationKey fromSourceNode(SNode templateDeclarationNode)
 
- 
fromPointer
public static TemplateDeclarationKey fromPointer(SNodeReference template, @Nullable String templateName)
 
 - 
 
 -