public List<TypeSignature> getInputTypesSignatures(Method inputFunction) { ImmutableList.Builder<TypeSignature> builder = ImmutableList.builder(); Annotation[][] parameterAnnotations = inputFunction.getParameterAnnotations(); for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { if (annotation instanceof SqlType) { String typeName = ((SqlType) annotation).value(); builder.add(parseTypeSignature(typeName, literalParameters)); } } } return builder.build(); }
public List<TypeSignature> getInputTypesSignatures(Method inputFunction) { ImmutableList.Builder<TypeSignature> builder = ImmutableList.builder(); Annotation[][] parameterAnnotations = inputFunction.getParameterAnnotations(); for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { if (annotation instanceof SqlType) { String typeName = ((SqlType) annotation).value(); builder.add(parseTypeSignature(typeName, literalParameters)); } } } return builder.build(); }
.findFirst() .orElseThrow(() -> new IllegalArgumentException(format("Method [%s] is missing @SqlType annotation for parameter", method))); TypeSignature typeSignature = parseTypeSignature(type.value(), literalParameters); argumentTypes.add(typeSignature); inferSpecialization(method, parameterType, type.value());
.findFirst() .orElseThrow(() -> new IllegalArgumentException(format("Method [%s] is missing @SqlType annotation for parameter", method))); TypeSignature typeSignature = parseTypeSignature(type.value(), literalParameters); argumentTypes.add(typeSignature); inferSpecialization(method, parameterType, type.value());