Package de.monticore.types.check
Class SymTypeOfUnion
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeOfUnion
- All Implemented Interfaces:
Comparable<SymTypeExpression>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Set<SymTypeExpression> Set of types within the unionFields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) booleanaddAllUnionizedTypes(Collection<? extends SymTypeExpression> collection) booleanaddUnionizedType(SymTypeExpression element) voidbooleancontainsAllUnionizedTypes(Collection<?> collection) booleancontainsUnionizedType(Object element) booleanbooleanvoidforEachUnionizedTypes(Consumer<? super SymTypeExpression> action) intbooleanbooleanAm I an union type (e.g.booleanremoveAllUnionizedTypes(Collection<?> collection) booleanremoveIfUnionizedType(Predicate<? super SymTypeExpression> filter) booleanremoveUnionizedType(Object element) booleanretainAllUnionizedTypes(Collection<?> collection) voidsetUnionizedTypeSet(Set<SymTypeExpression> unionizedTypes) intObject[]toArrayUnionizedTypes(SymTypeExpression[] array) Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asVoidType, asWildcard, compareTo, deepClone, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, getTypeInfo, hasTypeInfo, isArrayType, isFunctionType, isGenericType, isInferenceVariable, isIntersectionType, isNullType, isNumericWithSIUnitType, isObjectType, isObscureType, isPrimitive, isRegExType, isSIUnitType, isTupleType, isTypeVariable, isValidType, isVoidType, isWildcard, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
DEFAULT_TYPESYMBOL_NAME
- See Also:
-
unionizedTypes
Set of types within the union
-
-
Constructor Details
-
SymTypeOfUnion
-
-
Method Details
-
isUnionType
public boolean isUnionType()Description copied from class:SymTypeExpressionAm I an union type (e.g. "(A|B)")?- Overrides:
isUnionTypein classSymTypeExpression
-
asUnionType
- Overrides:
asUnionTypein classSymTypeExpression
-
deepEquals
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
- Overrides:
acceptin classSymTypeExpression
-
containsUnionizedType
-
containsAllUnionizedTypes
-
isEmptyUnionizedTypes
public boolean isEmptyUnionizedTypes() -
iteratorUnionizedTypes
-
sizeUnionizedTypes
public int sizeUnionizedTypes() -
toArrayUnionizedTypes
-
toArrayUnionizedTypes
-
spliteratorUnionizedTypes
-
streamUnionizedTypes
-
parallelStreamUnionizedTypes
-
equalsUnionizedTypeTypes
-
hashCodeUnionizedTypes
public int hashCodeUnionizedTypes() -
getUnionizedTypeSet
-
clearUnionizedTypes
public void clearUnionizedTypes() -
addUnionizedType
-
addAllUnionizedTypes
-
removeUnionizedType
-
removeAllUnionizedTypes
-
retainAllUnionizedTypes
-
removeIfUnionizedType
-
forEachUnionizedTypes
-
setUnionizedTypeSet
-