Imran/Malic
05/02/2019, 7:55 AMDominaezzz
05/02/2019, 9:39 AMr4zzz4k
05/02/2019, 11:11 AMalec
05/02/2019, 11:28 AMalec
05/02/2019, 11:29 AMlouiscad
05/02/2019, 11:55 AMalec
05/02/2019, 12:03 PMalec
05/02/2019, 12:03 PMalec
05/02/2019, 12:04 PMalec
05/02/2019, 12:04 PMImran/Malic
05/03/2019, 9:17 AMExampleClass.kt
data class ExampleClass(val hello:String = "Hello"){
companion object {}
}
How can I get all the information of this class with PSI and generate for instance a generic function foo which prints the hello variable to the console?Imran/Malic
05/03/2019, 9:19 AMr4zzz4k
05/03/2019, 9:46 AMImran/Malic
05/03/2019, 9:47 AMImran/Malic
05/11/2019, 5:33 AMImran/Malic
05/11/2019, 5:34 AM@Retention(RUNTIME)
@Target(CLASS)
@MustBeDocumented
annotation class higherkind
processor:
abstract class HigherKindProcessor : Annotator {
override fun annotate(element: PsiElement, holder: AnnotationHolder) {
val tree = element.containingFile.children
tree.forEach { println(it.text) }
}
}
I want to do some codegen later on, but even that snippet within the annotation methode is not executed, if I create an object of an classalec
05/11/2019, 12:23 PMMockApplication