Package de.monticore.types.check
Class SymTypeArray
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeArray
-
public class SymTypeArray extends SymTypeExpression
Arrays of a certain dimension (>= 1)
-
-
Field Summary
Fields Modifier and Type Field Description protected SymTypeExpressionargumentAn Array has an argument Typeprotected intdimAn arrayType has a dimension (>= 1)-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeArray(TypeSymbol typeSymbol, int dim, SymTypeExpression argument)Deprecated.TypeSymbul UND Expression: da ist was doppelt?SymTypeArray(SymTypeExpression argument, int dim)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ISymTypeVisitor visitor)SymTypeArrayasArrayType()SymTypeExpressioncloneWithLessDim(int n)returns a clone, but with n dimensions lessSymTypeArraydeepClone()booleandeepEquals(SymTypeExpression sym)SymTypeExpressiongetArgument()intgetDim()booleanisArrayType()Am I an array?voidsetArgument(SymTypeExpression argument)voidsetDim(int dim)-
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, 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 Detail
-
dim
protected int dim
An arrayType has a dimension (>= 1)
-
argument
protected SymTypeExpression argument
An Array has an argument Type
-
-
Constructor Detail
-
SymTypeArray
@Deprecated public SymTypeArray(TypeSymbol typeSymbol, int dim, SymTypeExpression argument)
Deprecated.TypeSymbul UND Expression: da ist was doppelt?Constructor- Parameters:
dim- dimensionargument- Argument TypetypeSymbol- loader for the Type-Symbol that defines this type
-
SymTypeArray
public SymTypeArray(SymTypeExpression argument, int dim)
-
-
Method Detail
-
isArrayType
public boolean isArrayType()
Description copied from class:SymTypeExpressionAm I an array?- Overrides:
isArrayTypein classSymTypeExpression
-
asArrayType
public SymTypeArray asArrayType()
- Overrides:
asArrayTypein classSymTypeExpression
-
getDim
public int getDim()
-
setDim
public void setDim(int dim)
-
cloneWithLessDim
public SymTypeExpression cloneWithLessDim(int n)
returns a clone, but with n dimensions less
-
getArgument
public SymTypeExpression getArgument()
-
setArgument
public void setArgument(SymTypeExpression argument)
-
deepClone
public SymTypeArray deepClone()
- Overrides:
deepClonein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
-