Class MCCollectionSymTypeRelations
- java.lang.Object
-
- de.monticore.types.mccollectiontypes.types3.MCCollectionSymTypeRelations
-
public class MCCollectionSymTypeRelations extends java.lang.Objectrelations 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 Modifier and Type Field Description protected static MCCollectionSymTypeRelationsdelegate
-
Constructor Summary
Constructors Constructor Description MCCollectionSymTypeRelations()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SymTypeExpression_getCollectionElementType(SymTypeExpression type)protected SymTypeExpression_getMapKeyType(SymTypeExpression type)protected boolean_isList(SymTypeExpression type)protected boolean_isMap(SymTypeExpression type)protected boolean_isMCCollection(SymTypeExpression type)protected boolean_isOptional(SymTypeExpression type)protected boolean_isSet(SymTypeExpression type)static SymTypeExpressiongetCollectionElementType(SymTypeExpression type)protected static MCCollectionSymTypeRelationsgetDelegate()static SymTypeExpressiongetMapKeyType(SymTypeExpression type)static voidinit()protected booleanisCollectionType(SymTypeExpression type)hookpoint for getCollectionElementTypestatic booleanisList(SymTypeExpression type)static booleanisMap(SymTypeExpression type)static booleanisMCCollection(SymTypeExpression type)whether 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, java.lang.String unboxedName, java.lang.String boxedName, int numberOfArgs)static voidreset()protected static voidsetDelegate(MCCollectionSymTypeRelations newDelegate)
-
-
-
Field Detail
-
delegate
protected static MCCollectionSymTypeRelations delegate
-
-
Method Detail
-
isMCCollection
public static boolean isMCCollection(SymTypeExpression type)
whether the type is one of the four collection types from MCCollectionTypes; List, Set, Optional, Map
-
_isMCCollection
protected boolean _isMCCollection(SymTypeExpression type)
-
isList
public static boolean isList(SymTypeExpression type)
-
_isList
protected boolean _isList(SymTypeExpression type)
-
isSet
public static boolean isSet(SymTypeExpression type)
-
_isSet
protected boolean _isSet(SymTypeExpression type)
-
isOptional
public static boolean isOptional(SymTypeExpression type)
-
_isOptional
protected boolean _isOptional(SymTypeExpression type)
-
isMap
public static boolean isMap(SymTypeExpression type)
-
_isMap
protected boolean _isMap(SymTypeExpression type)
-
getCollectionElementType
public static SymTypeExpression getCollectionElementType(SymTypeExpression type)
- Returns:
- the Element type of a collection. In case of a Map, this is the value type.
-
_getCollectionElementType
protected SymTypeExpression _getCollectionElementType(SymTypeExpression type)
-
isCollectionType
protected boolean isCollectionType(SymTypeExpression type)
hookpoint for getCollectionElementType
-
getMapKeyType
public static SymTypeExpression getMapKeyType(SymTypeExpression type)
-
_getMapKeyType
protected SymTypeExpression _getMapKeyType(SymTypeExpression type)
-
isSpecificCollection
protected boolean isSpecificCollection(SymTypeExpression type, java.lang.String unboxedName, java.lang.String boxedName, int numberOfArgs)
-
init
public static void init()
-
reset
public static void reset()
-
setDelegate
protected static void setDelegate(MCCollectionSymTypeRelations newDelegate)
-
getDelegate
protected static MCCollectionSymTypeRelations getDelegate()
-
-