@Override protected IAType getListType(IAType itemType) { return new AUnorderedListType(itemType, null); }
public JUnorderedList(IAType elementType) { super(); this.listType = new AUnorderedListType(elementType, null); }
private AUnorderedListSerializerDeserializer() { this(new AUnorderedListType(BuiltinType.ANY, "unorderedlist")); }
public JUnorderedList(IJType elementType) { super(); this.listType = new AUnorderedListType(elementType.getIAType(), null); }
private static IAType getCollectionType(String paramType, MetadataTransactionContext txnCtx, Function function) throws AlgebricksException { Matcher matcher = orderedListPattern.matcher(paramType); if (matcher.find()) { String subType = paramType.substring(paramType.indexOf('[') + 1, paramType.lastIndexOf(']')); return new AOrderedListType(getTypeInfo(subType, txnCtx, function), "AOrderedList"); } else { matcher = unorderedListPattern.matcher(paramType); if (matcher.find()) { String subType = paramType.substring(paramType.indexOf("{{") + 2, paramType.lastIndexOf("}}")); return new AUnorderedListType(getTypeInfo(subType, txnCtx, function), "AUnorderedList"); } } return null; }
@Override public IAType computeType(ILogicalExpression expression, IVariableTypeEnvironment env, IMetadataProvider<?, ?> metadataProvider) throws AlgebricksException { return new AUnorderedListType(((AUnorderedListType) type).getItemType(), type.getTypeName()); }
return new AUnorderedListType(itemType, "unordered-list");
private static AUnorderedListType computeUnorderedListType(TypeSignature typeSignature, UnorderedListTypeDefinition ultd, Map<TypeSignature, IAType> typeMap, Map<TypeSignature, List<AbstractCollectionType>> incompleteItemTypes, Map<String, Map<ARecordType, List<Integer>>> incompleteFieldTypes, String defaulDataverse) throws AlgebricksException { TypeExpression tExpr = ultd.getItemTypeExpression(); String typeName = typeSignature != null ? typeSignature.getName() : null; AUnorderedListType ault = new AUnorderedListType(null, typeName); setCollectionItemType(tExpr, typeMap, incompleteItemTypes, incompleteFieldTypes, ault, defaulDataverse); return ault; }
private static AUnorderedListType generalizeUnorderedListTypes(AUnorderedListType leftType, AUnorderedListType rightType) { return new AUnorderedListType(processItemType(generalizeTypes(leftType.getItemType(), rightType.getItemType())), "generalized-unordered-list"); }
AUnorderedListType type = new AUnorderedListType(currentItemType, "unorderedlist"); return new AUnorderedList(type, items); } catch (IOException e) {
public IAType computeType(ILogicalExpression expression, IVariableTypeEnvironment env, IMetadataProvider<?, ?> metadataProvider) throws AlgebricksException { return new AUnorderedListType(((AUnorderedListType) type).getItemType(), type.getTypeName());
.getStringValue(); return new Datatype(dataverseName, datatypeName, new AUnorderedListType(BuiltinTypeMap.getTypeFromTypeName(metadataNode, txnId, dataverseName, unorderedlistTypeName, false), datatypeName), isAnonymous);
outputListType = new AOrderedListType(TypeTagUtil.getBuiltinTypeByTag(itemType), null); } else { outputListType = new AUnorderedListType(TypeTagUtil.getBuiltinTypeByTag(itemType), null);
collectionType = new AOrderedListType(listItemType, listItemType.getTypeName()); } else { collectionType = new AUnorderedListType(listItemType, listItemType.getTypeName());