Package xyz.block.ftl.runtime.processor
Class AnnotationProcessor
-
- All Implemented Interfaces:
-
javax.annotation.processing.Processor
public class AnnotationProcessor implements Processor
POC annotation processor for capturing JavaDoc, this needs a lot more work.
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessor()
-
Method Summary
Modifier and Type Method Description Set<String>getSupportedOptions()Set<String>getSupportedAnnotationTypes()SourceVersiongetSupportedSourceVersion()voidinit(ProcessingEnvironment processingEnv)booleanprocess(Set<out TypeElement> annotations, RoundEnvironment roundEnv)voidwrite(String filePath, Set<String> set)This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported. Iterable<out Completion>getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)Optional<String>getJavadoc(Element e)StringstripJavadocTags(String doc)-
-
Method Detail
-
getSupportedOptions
Set<String> getSupportedOptions()
-
getSupportedAnnotationTypes
Set<String> getSupportedAnnotationTypes()
-
getSupportedSourceVersion
SourceVersion getSupportedSourceVersion()
-
init
void init(ProcessingEnvironment processingEnv)
-
process
boolean process(Set<out TypeElement> annotations, RoundEnvironment roundEnv)
-
write
void write(String filePath, Set<String> set)
This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported.
-
getCompletions
Iterable<out Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
-
getJavadoc
Optional<String> getJavadoc(Element e)
-
stripJavadocTags
String stripJavadocTags(String doc)
-
-
-
-