Interface SEnumeration
-
- All Superinterfaces:
SDataType
,SElement
,SNamedElement
,SType
public interface SEnumeration extends SNamedElement, SDataType
Enumerations define collections of relatedoptions
.
-
-
Field Summary
-
Fields inherited from interface org.jetbrains.mps.openapi.language.SType
NOT_A_VALUE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SEnumerationLiteral
getDefault()
Returns default value of the type.SEnumerationLiteral
getLiteral(String name)
Resolves the enumeration literal with matching nameCollection<SEnumerationLiteral>
getLiterals()
-
Methods inherited from interface org.jetbrains.mps.openapi.language.SDataType
fromString, toString
-
Methods inherited from interface org.jetbrains.mps.openapi.language.SElement
getLanguage, getSourceNode
-
Methods inherited from interface org.jetbrains.mps.openapi.language.SNamedElement
getName
-
Methods inherited from interface org.jetbrains.mps.openapi.language.SType
isInstanceOf
-
-
-
-
Method Detail
-
getLiteral
@Nullable SEnumerationLiteral getLiteral(@Nullable String name)
Resolves the enumeration literal with matching name
-
getDefault
@Nullable SEnumerationLiteral getDefault()
Description copied from interface:SType
Returns default value of the type.- Specified by:
getDefault
in interfaceSType
-
getLiterals
@NotNull Collection<SEnumerationLiteral> getLiterals()
- Returns:
- ordered set of enumeration literals
-
-