Package de.monticore.types.check
Class SymTypeOfTuple
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeOfTuple
-
public class SymTypeOfTuple extends SymTypeExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<SymTypeExpression>typesList of types within the tuple-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeOfTuple(java.util.List<SymTypeExpression> types)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ISymTypeVisitor visitor)booleanaddAllTypes(int index, java.util.Collection<? extends SymTypeExpression> collection)booleanaddAllTypes(java.util.Collection<? extends SymTypeExpression> collection)voidaddType(int index, SymTypeExpression element)booleanaddType(SymTypeExpression element)SymTypeOfTupleasTupleType()voidclearTypes()booleancontainsAllTypes(java.util.Collection<?> collection)booleancontainsType(java.lang.Object element)SymTypeOfTupledeepClone()booleandeepEquals(SymTypeExpression sym)booleanequalsTypeTypes(java.lang.Object o)voidforEachTypes(java.util.function.Consumer<? super SymTypeExpression> action)SymTypeExpressiongetType(int index)java.util.List<SymTypeExpression>getTypeList()inthashCodeTypes()intindexOfType(java.lang.Object element)booleanisEmptyTypes()booleanisTupleType()Am I a tuple type (e.g.java.util.Iterator<SymTypeExpression>iteratorTypes()intlastIndexOfType(java.lang.Object element)java.util.ListIterator<SymTypeExpression>listIteratorTypes()java.util.ListIterator<SymTypeExpression>listIteratorTypes(int index)java.util.stream.Stream<SymTypeExpression>parallelStreamTypes()booleanremoveAllTypes(java.util.Collection<?> collection)booleanremoveIfType(java.util.function.Predicate<? super SymTypeExpression> filter)SymTypeExpressionremoveType(int index)booleanremoveType(java.lang.Object element)voidreplaceAllTypes(java.util.function.UnaryOperator<SymTypeExpression> operator)booleanretainAllTypes(java.util.Collection<?> collection)SymTypeExpressionsetType(int index, SymTypeExpression element)voidsetTypeList(java.util.List<SymTypeExpression> types)intsizeTypes()voidsortTypes(java.util.Comparator<? super SymTypeExpression> comparator)java.util.Spliterator<SymTypeExpression>spliteratorTypes()java.util.stream.Stream<SymTypeExpression>streamTypes()java.util.List<SymTypeExpression>subListTypes(int start, int end)java.lang.Object[]toArrayTypes()SymTypeExpression[]toArrayTypes(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, asTypeVariable, asUnionType, asVoidType, asWildcard, 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, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
-
-
-
Field Detail
-
types
protected java.util.List<SymTypeExpression> types
List of types within the tuple
-
-
Constructor Detail
-
SymTypeOfTuple
public SymTypeOfTuple(java.util.List<SymTypeExpression> types)
-
-
Method Detail
-
isTupleType
public boolean isTupleType()
Description copied from class:SymTypeExpressionAm I a tuple type (e.g. "(String, int)")- Overrides:
isTupleTypein classSymTypeExpression
-
asTupleType
public SymTypeOfTuple asTupleType()
- Overrides:
asTupleTypein classSymTypeExpression
-
deepClone
public SymTypeOfTuple deepClone()
- Overrides:
deepClonein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
containsType
public boolean containsType(java.lang.Object element)
-
containsAllTypes
public boolean containsAllTypes(java.util.Collection<?> collection)
-
isEmptyTypes
public boolean isEmptyTypes()
-
iteratorTypes
public java.util.Iterator<SymTypeExpression> iteratorTypes()
-
sizeTypes
public int sizeTypes()
-
toArrayTypes
public SymTypeExpression[] toArrayTypes(SymTypeExpression[] array)
-
toArrayTypes
public java.lang.Object[] toArrayTypes()
-
spliteratorTypes
public java.util.Spliterator<SymTypeExpression> spliteratorTypes()
-
streamTypes
public java.util.stream.Stream<SymTypeExpression> streamTypes()
-
parallelStreamTypes
public java.util.stream.Stream<SymTypeExpression> parallelStreamTypes()
-
getType
public SymTypeExpression getType(int index)
-
indexOfType
public int indexOfType(java.lang.Object element)
-
lastIndexOfType
public int lastIndexOfType(java.lang.Object element)
-
equalsTypeTypes
public boolean equalsTypeTypes(java.lang.Object o)
-
hashCodeTypes
public int hashCodeTypes()
-
listIteratorTypes
public java.util.ListIterator<SymTypeExpression> listIteratorTypes()
-
listIteratorTypes
public java.util.ListIterator<SymTypeExpression> listIteratorTypes(int index)
-
subListTypes
public java.util.List<SymTypeExpression> subListTypes(int start, int end)
-
getTypeList
public java.util.List<SymTypeExpression> getTypeList()
-
clearTypes
public void clearTypes()
-
addType
public boolean addType(SymTypeExpression element)
-
addAllTypes
public boolean addAllTypes(java.util.Collection<? extends SymTypeExpression> collection)
-
removeType
public boolean removeType(java.lang.Object element)
-
removeAllTypes
public boolean removeAllTypes(java.util.Collection<?> collection)
-
retainAllTypes
public boolean retainAllTypes(java.util.Collection<?> collection)
-
removeIfType
public boolean removeIfType(java.util.function.Predicate<? super SymTypeExpression> filter)
-
forEachTypes
public void forEachTypes(java.util.function.Consumer<? super SymTypeExpression> action)
-
addType
public void addType(int index, SymTypeExpression element)
-
addAllTypes
public boolean addAllTypes(int index, java.util.Collection<? extends SymTypeExpression> collection)
-
removeType
public SymTypeExpression removeType(int index)
-
setType
public SymTypeExpression setType(int index, SymTypeExpression element)
-
replaceAllTypes
public void replaceAllTypes(java.util.function.UnaryOperator<SymTypeExpression> operator)
-
sortTypes
public void sortTypes(java.util.Comparator<? super SymTypeExpression> comparator)
-
setTypeList
public void setTypeList(java.util.List<SymTypeExpression> types)
-
-