Package it.unive.lisa.type
Interface ArrayType
-
- All Superinterfaces:
PointerType,Type
public interface ArrayType extends PointerType
Array type interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypegetBaseType()Yields the base type of this array type.TypegetInnerType()Yields the type of the inner dimension of this array type.-
Methods inherited from interface it.unive.lisa.type.Type
allInstances, asArrayType, asBooleanType, asNullType, asNumericType, asPointerType, asStringType, asTypeTokenType, asUnitType, asUntyped, asVoidType, canBeAssignedTo, commonSupertype, isArrayType, isBooleanType, isNullType, isNumericType, isPointerType, isStringType, isTypeTokenType, isUnitType, isUntyped, isVoidType
-
-
-
-
Method Detail
-
getInnerType
Type getInnerType()
Yields the type of the inner dimension of this array type. For instance, if this type representsint[], this method will returnint. Instead, if this type representsint[][], this method will returnint.- Returns:
- the inner type of this array type
-
getBaseType
Type getBaseType()
Yields the base type of this array type. For instance, if this type representsint[], this method will returnint. This is the case also this type representsint[][].- Returns:
- the base type of this array type
-
-