Package de.monticore.types3
Class SymTypeRelationsOfIterables
java.lang.Object
de.monticore.types3.SymTypeRelationsOfIterables
Relations of SymTypeExpressions that are iterable (e.g., arrays, List, Iterable)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<SymTypeExpression> protected Optional<SymTypeExpression> protected Optional<SymTypeExpression> protected booleanprotected booleanprotected booleanprotected static SymTypeRelationsOfIterablesstatic Optional<SymTypeExpression> static voidinit()static booleanisArrayType(SymTypeExpression type) Whether the type is an array (e.g., int[])static booleanWhether the type is of the raw type Iterable (e.g., java.lang.Iterable)protected static booleanWhether the type if of or a subtype of the raw type Iterable (e.g., java.lang.Iterable)static voidreset()protected static voidsetDelegate(SymTypeRelationsOfIterables newDelegate)
-
Field Details
-
delegate
-
-
Constructor Details
-
SymTypeRelationsOfIterables
public SymTypeRelationsOfIterables()
-
-
Method Details
-
isArrayType
Whether the type is an array (e.g., int[])- See Also:
-
_isArrayType
-
isOfTypeIterable
Whether the type is of the raw type Iterable (e.g., java.lang.Iterable)- See Also:
-
_isOfTypeIterable
-
isOfTypeIterableOrSubType
Whether the type if of or a subtype of the raw type Iterable (e.g., java.lang.Iterable)- See Also:
-
_isOfTypeIterableOrSubType
-
getIterationType
- Returns:
- an
Optionalof the Element type of the iterable or anOptional.empty()if the type is not iterable
-
_getIterationType
-
_getIterationTypeOfArray
-
_getIterationTypeOfTypeIterable
-
init
public static void init() -
reset
public static void reset() -
setDelegate
-
getDelegate
-