I can't generate a class using Kotlin processor

I'm implementing a processor to generate kotlin code using custom annotations. The problem is that I cannot find a way to relate the annotation to the field it was declared for, and I cannot find a way to understand if a field is of a nullable type. The processor doesn't succeed to generate the code because the getAnnotationsByType doesn't return the annotations for the current field (the list it's empty). Not even the order is good, fields are passed first and the annotations after all the fields.

package it.kfi.xml.binding.processor

import com.google.auto.service.AutoService

import com.squareup.kotlinpoet.*


Read More »

By: StackOverFlow - Friday, 9 November

Related Posts