Package de.monticore.types.check
Class SymTypeArray
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeArray
- All Implemented Interfaces:
Comparable<SymTypeExpression>
Arrays of a certain dimension (
>= 1)-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SymTypeExpressionAn Array has an argument Typeprotected intAn arrayType has a dimension (>= 1)Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol -
Constructor Summary
ConstructorsConstructorDescriptionSymTypeArray(TypeSymbol typeSymbol, int dim, SymTypeExpression argument) Deprecated, for removal: This API element is subject to removal in a future version.TypeSymbul UND Expression: da ist was doppelt?SymTypeArray(SymTypeExpression argument, int dim) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) cloneWithLessDim(int n) returns a clone, but with n dimensions lessbooleanintgetDim()booleanAm I an array?voidsetArgument(SymTypeExpression argument) voidsetDim(int dim) Deprecated.Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asUnionType, asVoidType, asWildcard, compareTo, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, getTypeInfo, hasTypeInfo, isFunctionType, isGenericType, isInferenceVariable, isIntersectionType, isNullType, isNumericWithSIUnitType, isObjectType, isObscureType, isPrimitive, isRegExType, isSIUnitType, isTupleType, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
dim
protected int dimAn arrayType has a dimension (>= 1) -
argument
An Array has an argument Type
-
-
Constructor Details
-
SymTypeArray
@Deprecated(forRemoval=true) public SymTypeArray(TypeSymbol typeSymbol, int dim, SymTypeExpression argument) Deprecated, for removal: This API element is subject to removal in a future version.TypeSymbul UND Expression: da ist was doppelt?Constructor- Parameters:
typeSymbol- loader for the Type-Symbol that defines this typedim- dimensionargument- Argument Type
-
SymTypeArray
-
-
Method Details
-
isArrayType
public boolean isArrayType()Description copied from class:SymTypeExpressionAm I an array?- Overrides:
isArrayTypein classSymTypeExpression
-
asArrayType
- Overrides:
asArrayTypein classSymTypeExpression
-
getDim
public int getDim() -
setDim
Deprecated. -
cloneWithLessDim
returns a clone, but with n dimensions less -
getArgument
-
setArgument
-
deepClone
- Overrides:
deepClonein classSymTypeExpression
-
deepEquals
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
- Overrides:
acceptin classSymTypeExpression
-