Package de.monticore.types.check
Class SymTypeOfIntersection
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeOfIntersection
-
public class SymTypeOfIntersection extends SymTypeExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<SymTypeExpression>intersectedTypesSet of types within the intersection-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeOfIntersection(java.util.Collection<? extends SymTypeExpression> types)
-
Method Summary
-
Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asNullType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asUnionType, asVoidType, asWildcard, deepClone, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, getTypeInfo, hasTypeInfo, isArrayType, isFunctionType, isGenericType, isInferenceVariable, isNullType, isNumericWithSIUnitType, isObjectType, isObscureType, isPrimitive, isRegExType, isSIUnitType, isTupleType, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
-
-
-
Field Detail
-
intersectedTypes
protected java.util.Set<SymTypeExpression> intersectedTypes
Set of types within the intersection
-
-
Constructor Detail
-
SymTypeOfIntersection
public SymTypeOfIntersection(java.util.Collection<? extends SymTypeExpression> types)
-
-
Method Detail
-
isIntersectionType
public boolean isIntersectionType()
Description copied from class:SymTypeExpressionAm I an intersection type (e.g."(A&B)")- Overrides:
isIntersectionTypein classSymTypeExpression
-
asIntersectionType
public SymTypeOfIntersection asIntersectionType()
- Overrides:
asIntersectionTypein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
containsIntersectedType
public boolean containsIntersectedType(java.lang.Object element)
-
containsAllIntersectedTypes
public boolean containsAllIntersectedTypes(java.util.Collection<?> collection)
-
isEmptyIntersectedTypes
public boolean isEmptyIntersectedTypes()
-
iteratorIntersectedTypes
public java.util.Iterator<SymTypeExpression> iteratorIntersectedTypes()
-
sizeIntersectedTypes
public int sizeIntersectedTypes()
-
toArrayIntersectedTypes
public SymTypeExpression[] toArrayIntersectedTypes(SymTypeExpression[] array)
-
toArrayIntersectedTypes
public java.lang.Object[] toArrayIntersectedTypes()
-
spliteratorIntersectedTypes
public java.util.Spliterator<SymTypeExpression> spliteratorIntersectedTypes()
-
streamIntersectedTypes
public java.util.stream.Stream<SymTypeExpression> streamIntersectedTypes()
-
parallelStreamIntersectedTypes
public java.util.stream.Stream<SymTypeExpression> parallelStreamIntersectedTypes()
-
equalsIntersectedTypeTypes
public boolean equalsIntersectedTypeTypes(java.lang.Object o)
-
hashCodeIntersectedTypes
public int hashCodeIntersectedTypes()
-
getIntersectedTypeSet
public java.util.Set<SymTypeExpression> getIntersectedTypeSet()
-
clearIntersectedTypes
public void clearIntersectedTypes()
-
addIntersectedType
public boolean addIntersectedType(SymTypeExpression element)
-
addAllIntersectedTypes
public boolean addAllIntersectedTypes(java.util.Collection<? extends SymTypeExpression> collection)
-
removeIntersectedType
public boolean removeIntersectedType(java.lang.Object element)
-
removeAllIntersectedTypes
public boolean removeAllIntersectedTypes(java.util.Collection<?> collection)
-
retainAllIntersectedTypes
public boolean retainAllIntersectedTypes(java.util.Collection<?> collection)
-
removeIfIntersectedType
public boolean removeIfIntersectedType(java.util.function.Predicate<? super SymTypeExpression> filter)
-
forEachIntersectedTypes
public void forEachIntersectedTypes(java.util.function.Consumer<? super SymTypeExpression> action)
-
setIntersectedTypeSet
public void setIntersectedTypeSet(java.util.Set<SymTypeExpression> intersectedTypes)
-
-