public abstract class BaseProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
protected com.sun.source.util.DocTrees |
docTrees |
protected Elements |
elementUtils |
protected io.vertx.docgen.Helper |
helper |
protected Types |
typeUtils |
processingEnv| Constructor and Description |
|---|
BaseProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
defaultRenderSource(ExecutableElement elt,
String source)
Render the source fragment for the Java language.
|
protected String |
getExtension() |
protected abstract String |
getName() |
Set<String> |
getSupportedAnnotationTypes() |
Set<String> |
getSupportedOptions() |
SourceVersion |
getSupportedSourceVersion() |
protected abstract void |
handleGen(PackageElement pkgElt) |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
process(Writer buffer,
PackageElement pkgElt) |
protected abstract String |
renderSource(ExecutableElement elt,
String source) |
protected abstract String |
resolveConstructorLink(ExecutableElement elt,
Coordinate coordinate) |
protected abstract String |
resolveFieldLink(VariableElement elt,
Coordinate coordinate) |
protected String |
resolveLabel(Element elt)
Resolve a label for the specified element, this is used when a link to a program element
does not specify an explicit label.
Subclasses can override it to implement a particular behavior for elements.
|
protected String |
resolveLinkToPackageDoc(PackageElement elt) |
protected abstract String |
resolveMethodLink(ExecutableElement elt,
Coordinate coordinate) |
protected abstract String |
resolveTypeLink(TypeElement elt,
Coordinate coordinate) |
protected void |
write(PackageElement docElt,
String content) |
getCompletions, isInitializedprotected com.sun.source.util.DocTrees docTrees
protected Types typeUtils
protected Elements elementUtils
protected io.vertx.docgen.Helper helper
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic Set<String> getSupportedOptions()
getSupportedOptions in interface ProcessorgetSupportedOptions in class AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprotected abstract void handleGen(PackageElement pkgElt)
protected String getExtension()
protected String resolveLinkToPackageDoc(PackageElement elt)
protected abstract String resolveTypeLink(TypeElement elt, Coordinate coordinate)
protected abstract String resolveConstructorLink(ExecutableElement elt, Coordinate coordinate)
protected abstract String resolveMethodLink(ExecutableElement elt, Coordinate coordinate)
protected abstract String resolveFieldLink(VariableElement elt, Coordinate coordinate)
protected abstract String renderSource(ExecutableElement elt, String source)
protected String resolveLabel(Element elt)
elt - the elt to resolve a label forprotected abstract String getName()
protected final void process(Writer buffer, PackageElement pkgElt)
protected void write(PackageElement docElt, String content)
protected final String defaultRenderSource(ExecutableElement elt, String source)
elt - the elementsource - the sourceCopyright © 2015. All Rights Reserved.