Sergej Chodarev
Sergej Chodarev
java.lang.reflect
→ javax.lang.model
javax.lang.model.element.Element
javax.lang.model.type.TypeMirror
javax.lang.model.element.AnnotationMirror
javax.annotation.processing.Processor
void init(ProcessingEnvironment processingEnv)
boolean process(
Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
META-INF/services/javax.annotation.processing.Processor
https://git.kpi.fei.tuke.sk/meta/examples/sav
reflection
— pomocou reflexieprocessor
— pomocou anotačného procesoru a generovania kóduSet<? extends Element> getElementsAnnotatedWith(
Class<? extends Annotation> a)
Messager getMessager()
Filer getFiler()
Elements getElementUtils()