Interface SAbstractConcept
-
- All Superinterfaces:
SNamedElement
- All Known Subinterfaces:
SConcept
,SInterfaceConcept
public interface SAbstractConcept extends SNamedElement
A descriptor of a concept. Concepts define categories for AST nodes. The descriptor is read-only, so it is not possible to change the concept through its descriptor. SConcept (and SAbstractConcept) can be constructed using id/name pair or (better) be obtained from MetaAdapterFactory. note: the relationship between SNode and SConcept is analogical to the relationship between an object and its Class in Java
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getConceptAlias()
Collection<SContainmentLink>
getContainmentLinks()
Returns all the links this concept has, including inherited There's no "specialized links" at the compiled language level, all links are "original"SNode
getDeclarationNode()
Deprecated.String
getHelpUrl()
SLanguage
getLanguage()
The language that defines the conceptSAbstractLink
getLink(String role)
Deprecated.use SReferenceLink or SContainmentLink alternatives.Iterable<SAbstractLink>
getLinks()
Deprecated.UsegetContainmentLinks()
orgetReferenceLinks()
insteadString
getName()
Presentation of the element for an end-user.Collection<SProperty>
getProperties()
Returns all the properties this concept has, including inheritedSProperty
getProperty(String name)
Deprecated.use SProperty-based alternatives.String
getQualifiedName()
Deprecated.Collection<SReferenceLink>
getReferenceLinks()
Returns all the references this concept has, including inheritedString
getShortDescription()
SNodeReference
getSourceNode()
Returns reference to the node, which was generated to this concept.boolean
isAbstract()
boolean
isSubConceptOf(SAbstractConcept concept)
Either implementing or extending the supplied conceptboolean
isValid()
Returns true if this concept is fully-functional.
-
-
-
Method Detail
-
getName
@NotNull String getName()
Description copied from interface:SNamedElement
Presentation of the element for an end-user. Unlike identity, the name is deemed user-friendly and shall not be used for persistence.- Specified by:
getName
in interfaceSNamedElement
- Returns:
- the name of the concept
-
getReferenceLinks
Collection<SReferenceLink> getReferenceLinks()
Returns all the references this concept has, including inherited
-
getContainmentLinks
Collection<SContainmentLink> getContainmentLinks()
Returns all the links this concept has, including inherited There's no "specialized links" at the compiled language level, all links are "original"
-
getProperties
Collection<SProperty> getProperties()
Returns all the properties this concept has, including inherited
-
isSubConceptOf
boolean isSubConceptOf(SAbstractConcept concept)
Either implementing or extending the supplied concept
-
isAbstract
boolean isAbstract()
- Returns:
true
for interfaces and abstract concepts.
-
getDeclarationNode
@Deprecated @Nullable SNode getDeclarationNode()
Deprecated.Returns the declaration node in case sources for this concept are present in IDE Will be removed after 3.4, use getSourceNode() instead
-
getSourceNode
@Nullable SNodeReference getSourceNode()
Returns reference to the node, which was generated to this concept. The target node's concept can be different form AbstractConceptDeclaration. Generally, this method should be only used for "go to concept declaration".
-
isValid
boolean isValid()
Returns true if this concept is fully-functional. Typically, user code should not care about this Can return false, for example, if the containing language is absent
-
getQualifiedName
@Deprecated String getQualifiedName()
Deprecated.
-
getLinks
@Deprecated Iterable<SAbstractLink> getLinks()
Deprecated.UsegetContainmentLinks()
orgetReferenceLinks()
insteadThere were no use of the method as of MPS 3.4
-
getProperty
@Deprecated SProperty getProperty(String name)
Deprecated.use SProperty-based alternatives. For MPS internals and transition from legacy code, one can useConceptMetaInfoConverter
.There were no use of the method as of MPS 3.4
-
getLink
@Deprecated SAbstractLink getLink(String role)
Deprecated.use SReferenceLink or SContainmentLink alternatives. For MPS internals and transition from legacy code, one can useConceptMetaInfoConverter
.There were no use of the method as of MPS 3.4
-
-