10 this->componentType = NULL;
14 ArrayType::ArrayType(DataType* componentType)
16 this->componentType = componentType;
20 ArrayType::ArrayType(DataType* componentType, Range* length)
22 this->componentType = componentType;
23 this->length = length;
26 ArrayType::~ArrayType()
28 if(componentType != NULL)
39 DataType* ArrayType::getComponentType()
44 void ArrayType::setComponentType(DataType* componentType)
46 this->componentType = componentType;
48 if(componentType->getNotBuiltIn() == true)
54 int ArrayType::minLength()
56 if(length == NULL) return 0;
58 return 0;//length->getLower();
61 int ArrayType::maxLength()
63 if(length == NULL) return INT_MAX;
65 return 0;//length->Upper();
68 Range* ArrayType::getLength()
73 void ArrayType::setLength(Range* length)
75 this->length = length;
78 std::string ArrayType::writeOut(int /*indent*/)
82 s += componentType->writeOut();
86 s += length->writeOut();