Class MCCollectionSymTypeRelations
java.lang.Object
de.monticore.types.mccollectiontypes.types3.MCCollectionSymTypeRelations
relations for built-in Collection SymTypes of MCCollectionSymTypes
these are List, Set, Optional, Map
Per default, this does NOT include types that inherit from collection types
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SymTypeExpressionprotected SymTypeExpressionprotected boolean_isList(SymTypeExpression type) protected boolean_isMap(SymTypeExpression type) protected booleanprotected boolean_isOptional(SymTypeExpression type) protected boolean_isSet(SymTypeExpression type) static SymTypeExpressionprotected static MCCollectionSymTypeRelationsstatic SymTypeExpressionstatic voidinit()protected booleanhookpoint for getCollectionElementTypestatic booleanisList(SymTypeExpression type) static booleanisMap(SymTypeExpression type) static booleanwhether the type is one of the four collection types from MCCollectionTypes; List, Set, Optional, Mapstatic booleanisOptional(SymTypeExpression type) static booleanisSet(SymTypeExpression type) protected booleanisSpecificCollection(SymTypeExpression type, String unboxedName, String boxedName, int numberOfArgs) static voidreset()protected static voidsetDelegate(MCCollectionSymTypeRelations newDelegate)
-
Field Details
-
delegate
-
-
Constructor Details
-
MCCollectionSymTypeRelations
public MCCollectionSymTypeRelations()
-
-
Method Details
-
isMCCollection
whether the type is one of the four collection types from MCCollectionTypes; List, Set, Optional, Map -
_isMCCollection
-
isList
-
_isList
-
isSet
-
_isSet
-
isOptional
-
_isOptional
-
isMap
-
_isMap
-
getCollectionElementType
- Returns:
- the Element type of a collection. In case of a Map, this is the value type.
-
_getCollectionElementType
-
isCollectionType
hookpoint for getCollectionElementType -
getMapKeyType
-
_getMapKeyType
-
isSpecificCollection
protected boolean isSpecificCollection(SymTypeExpression type, String unboxedName, String boxedName, int numberOfArgs) -
init
public static void init() -
reset
public static void reset() -
setDelegate
-
getDelegate
-