Let say I have 3 annotation class
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class Combined (
val id: String
)
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class Response
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class Parameter
my data class:
@Combined("Request1")
@Parameter
data class param(
val name: String
)
@Combined("Request1")
@Response
data class response(
val data: String
)
I want to generate 1 class in annotation processor based on @Combined
and similarity of value id in @Combine
props. And the content of the class is based on @Parameter
and @Response
.
To make it clear, basically I want to group all @Combined
class based on id. Then get the class that param and response then generate a class based on their property combined.
Is this possible?