Package de.monticore.types.check
Class SymTypeOfUnion
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeOfUnion
-
public class SymTypeOfUnion extends SymTypeExpression
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_TYPESYMBOL_NAMEprotected java.util.Set<SymTypeExpression>unionizedTypesSet of types within the union-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeOfUnion(java.util.Collection<? extends SymTypeExpression> types)
-
Method Summary
-
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, 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 Detail
-
DEFAULT_TYPESYMBOL_NAME
public static final java.lang.String DEFAULT_TYPESYMBOL_NAME
- See Also:
- Constant Field Values
-
unionizedTypes
protected java.util.Set<SymTypeExpression> unionizedTypes
Set of types within the union
-
-
Constructor Detail
-
SymTypeOfUnion
public SymTypeOfUnion(java.util.Collection<? extends SymTypeExpression> types)
-
-
Method Detail
-
isUnionType
public boolean isUnionType()
Description copied from class:SymTypeExpressionAm I an union type (e.g. "(A|B)")?- Overrides:
isUnionTypein classSymTypeExpression
-
asUnionType
public SymTypeOfUnion asUnionType()
- Overrides:
asUnionTypein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
containsUnionizedType
public boolean containsUnionizedType(java.lang.Object element)
-
containsAllUnionizedTypes
public boolean containsAllUnionizedTypes(java.util.Collection<?> collection)
-
isEmptyUnionizedTypes
public boolean isEmptyUnionizedTypes()
-
iteratorUnionizedTypes
public java.util.Iterator<SymTypeExpression> iteratorUnionizedTypes()
-
sizeUnionizedTypes
public int sizeUnionizedTypes()
-
toArrayUnionizedTypes
public SymTypeExpression[] toArrayUnionizedTypes(SymTypeExpression[] array)
-
toArrayUnionizedTypes
public java.lang.Object[] toArrayUnionizedTypes()
-
spliteratorUnionizedTypes
public java.util.Spliterator<SymTypeExpression> spliteratorUnionizedTypes()
-
streamUnionizedTypes
public java.util.stream.Stream<SymTypeExpression> streamUnionizedTypes()
-
parallelStreamUnionizedTypes
public java.util.stream.Stream<SymTypeExpression> parallelStreamUnionizedTypes()
-
equalsUnionizedTypeTypes
public boolean equalsUnionizedTypeTypes(java.lang.Object o)
-
hashCodeUnionizedTypes
public int hashCodeUnionizedTypes()
-
getUnionizedTypeSet
public java.util.Set<SymTypeExpression> getUnionizedTypeSet()
-
clearUnionizedTypes
public void clearUnionizedTypes()
-
addUnionizedType
public boolean addUnionizedType(SymTypeExpression element)
-
addAllUnionizedTypes
public boolean addAllUnionizedTypes(java.util.Collection<? extends SymTypeExpression> collection)
-
removeUnionizedType
public boolean removeUnionizedType(java.lang.Object element)
-
removeAllUnionizedTypes
public boolean removeAllUnionizedTypes(java.util.Collection<?> collection)
-
retainAllUnionizedTypes
public boolean retainAllUnionizedTypes(java.util.Collection<?> collection)
-
removeIfUnionizedType
public boolean removeIfUnionizedType(java.util.function.Predicate<? super SymTypeExpression> filter)
-
forEachUnionizedTypes
public void forEachUnionizedTypes(java.util.function.Consumer<? super SymTypeExpression> action)
-
setUnionizedTypeSet
public void setUnionizedTypeSet(java.util.Set<SymTypeExpression> unionizedTypes)
-
-