Package io.vertx.docgen
Class BaseProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.vertx.docgen.BaseProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
DocGenProcessor,JavaDocGenProcessor
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.sun.source.util.DocTreesprotected io.vertx.docgen.Helperprotected Set<PostProcessor>protected io.vertx.docgen.SyntaxFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringapplyPostProcessors(String name2, String content) Apply post-processors.applyVariableSubstitution(String content) Replace `@{var} by the variable value passed to the annotation processor.protected abstract Iterable<DocGenerator>protected StringgetPostProcessor(String name) voidinit(ProcessingEnvironment processingEnv) protected StringpostProcess(String name, String content) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) registerPostProcessor(PostProcessor postProcessor) protected Stringprotected voidwrite(DocGenerator generator, io.vertx.docgen.BaseProcessor.Doc doc, String content) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, isInitialized
-
Field Details
-
docTrees
protected com.sun.source.util.DocTrees docTrees -
helper
protected io.vertx.docgen.Helper helper -
sources
-
postProcessors
-
resolutions
-
syntax
protected io.vertx.docgen.Syntax syntax
-
-
Constructor Details
-
BaseProcessor
public BaseProcessor()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptionsin interfaceProcessor- Overrides:
getSupportedOptionsin classAbstractProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
registerPostProcessor
-
getPostProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
generators
-
getExtension
- Returns:
- the extension obtained from processor option docgen.extension defaults to .adoc when absent.
-
resolveLinkToPackageDoc
-
postProcess
-
write
-
applyPostProcessors
Apply post-processors.- Parameters:
content- the (asciidoc) content- Returns:
- the content after post-processing.
-
applyVariableSubstitution
Replace `@{var} by the variable value passed to the annotation processor.- Parameters:
content- the content- Returns:
- the content with variable values
-