Class SNamedElementAdapter
- java.lang.Object
 - 
- jetbrains.mps.smodel.adapter.structure.SNamedElementAdapter
 
 
- 
- All Implemented Interfaces:
 SElement,SNamedElement
- Direct Known Subclasses:
 SAbstractConceptAdapter,SConstrainedStringDatatypeAdapter,SEnumerationAdapter
public abstract class SNamedElementAdapter extends Object implements SNamedElement
- Since:
 - 2018.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SNamedElementAdapter(String fqName) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract NamedElementDescriptorgetDescriptor()StringgetName()Presentation of the element for an end-user.SNodeReferencegetSourceNode()Returns reference to the node, which was generated to this element.protected booleanisBootstrap()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SElement
getLanguage 
 - 
 
 - 
 
- 
- 
Field Detail
- 
myFqName
protected final String myFqName
 
 - 
 
- 
Constructor Detail
- 
SNamedElementAdapter
public SNamedElementAdapter(String fqName)
 
 - 
 
- 
Method Detail
- 
getDescriptor
@Nullable protected abstract NamedElementDescriptor getDescriptor()
 
- 
isBootstrap
protected boolean isBootstrap()
 
- 
getSourceNode
@Nullable public final SNodeReference getSourceNode()
Description copied from interface:SElementReturns reference to the node, which was generated to this element. Should be used to language debug and navigation purposes.- Specified by:
 getSourceNodein interfaceSElement
 
- 
getName
@NotNull public String getName()
Description copied from interface:SNamedElementPresentation of the element for an end-user. Unlike identity, the name is deemed user-friendly and shall not be used for persistence.- Specified by:
 getNamein interfaceSNamedElement- Returns:
 - name of the meta element
 
 
 - 
 
 -