public abstract class BaseProcessor extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
protected com.sun.source.util.DocTrees |
docTrees |
protected io.vertx.docgen.Helper |
helper |
protected Set<PostProcessor> |
postProcessors |
protected Map<String,io.vertx.docgen.BaseProcessor.ElementResolution> |
resolutions |
protected List<String> |
sources |
processingEnv
Constructor and Description |
---|
BaseProcessor() |
Modifier and Type | Method and Description |
---|---|
protected String |
applyPostProcessors(String name2,
String content)
Apply post-processors.
|
String |
applyVariableSubstitution(String content)
Replace `@{var} by the variable value passed to the annotation processor.
|
protected abstract Iterable<DocGenerator> |
generators() |
protected String |
getExtension() |
PostProcessor |
getPostProcessor(String name) |
Set<String> |
getSupportedAnnotationTypes() |
Set<String> |
getSupportedOptions() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
protected String |
postProcess(String name,
String content) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
BaseProcessor |
registerPostProcessor(PostProcessor postProcessor) |
protected String |
resolveLinkToPackageDoc(PackageElement elt) |
protected void |
write(DocGenerator generator,
io.vertx.docgen.BaseProcessor.Doc doc,
String content) |
getCompletions, isInitialized
protected com.sun.source.util.DocTrees docTrees
protected io.vertx.docgen.Helper helper
protected Set<PostProcessor> postProcessors
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public Set<String> getSupportedOptions()
getSupportedOptions
in interface Processor
getSupportedOptions
in class AbstractProcessor
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public BaseProcessor registerPostProcessor(PostProcessor postProcessor)
public PostProcessor getPostProcessor(String name)
public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
protected abstract Iterable<DocGenerator> generators()
protected String getExtension()
protected String resolveLinkToPackageDoc(PackageElement elt)
protected void write(DocGenerator generator, io.vertx.docgen.BaseProcessor.Doc doc, String content)
protected String applyPostProcessors(String name2, String content)
content
- the (asciidoc) contentCopyright © 2017. All rights reserved.