public ShortList getEnumerationTypeList() { if (fEnumerationTypeList == null) { if (fEnumeration == null) { return ShortListImpl.EMPTY_LIST; } short[] list = new short[fEnumerationSize]; for (int i = 0; i < fEnumerationSize; i++) { list[i] = fEnumeration[i].actualValueType; } fEnumerationTypeList = new ShortListImpl(list, fEnumerationSize); } return fEnumerationTypeList; }
public int size() { return getLength(); }
private ShortList convertToPrimitiveKind(ShortList itemValueType) { if (itemValueType != null) { int i; final int length = itemValueType.getLength(); for (i = 0; i < length; ++i) { short type = itemValueType.item(i); if (type != convertToPrimitiveKind(type)) { break; } } if (i != length) { final short [] arr = new short[length]; for (int j = 0; j < i; ++j) { arr[j] = itemValueType.item(j); } for(; i < length; ++i) { arr[i] = convertToPrimitiveKind(itemValueType.item(i)); } return new ShortListImpl(arr, arr.length); } } return itemValueType; }
validatedInfo.memberType = null; validatedInfo.memberTypes = memberTypes; validatedInfo.itemValueTypes = new ShortListImpl(itemTypes, itemTypes.length); validatedInfo.normalizedValue = nvalue;