| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract class | |
| pack-priv class | BaseProcessor.
The resolution of an element. |
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| protected DocTrees | |
| pack-priv Map | |
| protected Helper | |
| protected Set | |
| protected Map | |
| protected List | |
| private final LinkedList | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the content after post-processing.the (asciidoc) content content)Apply post-processors. |
| public String | Returns: the content with variable valuesthe content content)Replace `@{var} by the variable value passed to the annotation processor. |
| private void | |
| protected abstract Iterable | |
| protected String | Returns: the extension obtained from processor option docgen.extension defaults to .adoc when absent.
|
| public synchronized PostProcessor | |
| public Set | getSupportedAnnotationTypes()
Overrides javax. Implements javax. Returns the names of the annotation interfaces supported by this processor. |
| public Set | getSupportedOptions()
Overrides javax. Implements javax. Returns the options recognized by this processor. |
| public SourceVersion | getSupportedSourceVersion()
Overrides javax. Implements javax. Returns the latest source version supported by this annotation processor. |
| private URL | |
| private Map | |
| public synchronized void | init(ProcessingEnvironment
environment to access facilities the tool framework
provides to the processor processingEnv)Overrides javax. Implements javax. Initializes the processor with the processing environment. |
| protected String | |
| public boolean | process(Set<? extends TypeElement>
the annotation interfaces requested to be processed annotations, RoundEnvironment environment for information about the current and prior round roundEnv)Implements abstract javax. Implements javax. Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor. |
| public synchronized BaseProcessor | |
| private String | |
| private Coordinate | Returns: the resolved coordinate object or null if the element is locally compiledthe type element to resolve typeElt)Resolve the coordinate of the type element, this method returns either:
|
| private String | Returns: the labelthe elt to resolve a label for elt)Resolve a label for the specified element, this is used when a link to a program element does not specify an explicit label. |
| protected String | |
| private void | visitLink(PackageElement pkgElt, String label, String signature, DocGenerator generator, DocWriter writer)
|
| protected void |
| ABC | back to summary |
|---|---|
| private static final Pattern ABC | |
| docTrees | back to summary |
|---|---|
| protected DocTrees docTrees | |
| failures | back to summary |
|---|---|
| pack-priv Map<String, String> failures | |
| helper | back to summary |
|---|---|
| protected Helper helper | |
| postProcessors | back to summary |
|---|---|
| protected Set<PostProcessor> postProcessors | |
| resolutions | back to summary |
|---|---|
| protected Map<String, BaseProcessor. | |
| sources | back to summary |
|---|---|
| protected List<String> sources | |
| stack | back to summary |
|---|---|
| private final LinkedList<PackageElement> stack | |
| state | back to summary |
|---|---|
| private final Map<BaseProcessor. | |
| BaseProcessor | back to summary |
|---|---|
| public BaseProcessor() | |
| applyPostProcessors | back to summary |
|---|---|
| protected String applyPostProcessors(String name2, String content) Apply post-processors. | |
| applyVariableSubstitution | back to summary |
|---|---|
| public String applyVariableSubstitution(String content) Replace `@{var} by the variable value passed to the annotation processor. | |
| ensureDir | back to summary |
|---|---|
| private void ensureDir(File dir) | |
| generators | back to summary |
|---|---|
| protected abstract Iterable | |
| getExtension | back to summary |
|---|---|
protected String getExtension()
| |
| getPostProcessor | back to summary |
|---|---|
| public synchronized PostProcessor getPostProcessor(String name) | |
| getSupportedAnnotationTypes | back to summary |
|---|---|
| public Set Overrides javax. Implements javax. Doc from javax. Returns the names of the annotation interfaces supported by this processor. | |
| getSupportedOptions | back to summary |
|---|---|
| public Set Overrides javax. Implements javax. Doc from javax. Returns the options recognized by this processor. | |
| getSupportedSourceVersion | back to summary |
|---|---|
| public SourceVersion getSupportedSourceVersion() Overrides javax. Implements javax. Doc from javax. Returns the latest source version supported by this annotation processor.
| |
| getURL | back to summary |
|---|---|
| private URL getURL(JavaFileObject fileObject) | |
| handleGen | back to summary |
|---|---|
| private Map | |
| init | back to summary |
|---|---|
| public synchronized void init(ProcessingEnvironment processingEnv) Overrides javax. Implements javax. Doc from javax. Initializes the processor with the processing environment.
| |
| postProcess | back to summary |
|---|---|
| protected String postProcess(String name, String content) | |
| process | back to summary |
|---|---|
| public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Implements abstract javax. Implements javax. Doc from javax. Processes a set of annotation interfaces on root elements originating
from the prior round and returns whether or not these
annotation interfaces are claimed by this processor. If The input set will be empty if the processor supports
| |
| registerPostProcessor | back to summary |
|---|---|
| public synchronized BaseProcessor registerPostProcessor(PostProcessor postProcessor) | |
| render | back to summary |
|---|---|
| private String render(List<? extends DocTree> trees) | |
| resolveCoordinate | back to summary |
|---|---|
| private Coordinate resolveCoordinate(TypeElement typeElt) Resolve the coordinate of the type element, this method returns either:
| |
| resolveLabel | back to summary |
|---|---|
| private String resolveLabel(DocGenerator generator, 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. | |
| resolveLinkToPackageDoc | back to summary |
|---|---|
| protected String resolveLinkToPackageDoc(PackageElement elt) | |
| visitLink | back to summary |
|---|---|
| private void visitLink(PackageElement pkgElt, String label, String signature, DocGenerator generator, DocWriter writer) | |
| write | back to summary |
|---|---|
| protected void write(DocGenerator generator, BaseProcessor. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract String | |
| protected final void | |
| pack-priv abstract String |
| Doc | back to summary |
|---|---|
| pack-priv Doc() | |
| id | back to summary |
|---|---|
| pack-priv abstract String id() | |
| process | back to summary |
|---|---|
| protected final void process(DocGenerator generator, DocWriter writer) | |
| resolveRelativeFileName | back to summary |
|---|---|
| pack-priv abstract String resolveRelativeFileName(DocGenerator generator) | |
| Modifier and Type | Field and Description |
|---|---|
| private Element | |
| private List | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| pack-priv boolean |
| elt | back to summary |
|---|---|
| private Element elt | |
| handlers | back to summary |
|---|---|
| private List<BaseProcessor. | |
| signature | back to summary |
|---|---|
| pack-priv final String signature | |
| ElementResolution | back to summary |
|---|---|
| public ElementResolution(String signature) | |
| add | back to summary |
|---|---|
| private void add(BaseProcessor. | |
| doResolve | back to summary |
|---|---|
| private void doResolve() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| tryResolve | back to summary |
|---|---|
| pack-priv boolean tryResolve() | |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | resolveRelativeFileName(DocGenerator generator)
Implements abstract io.
|
| file | back to summary |
|---|---|
| pack-priv final File file | |
| FileDoc | back to summary |
|---|---|
| pack-priv FileDoc(File file) | |
| id | back to summary |
|---|---|
| public String id() Implements abstract io.
| |
| resolveRelativeFileName | back to summary |
|---|---|
| public String resolveRelativeFileName(DocGenerator generator) Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DocGenerator | |
| pack-priv final String | |
| private DocWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| generator | back to summary |
|---|---|
| pack-priv final DocGenerator generator | |
| label | back to summary |
|---|---|
| pack-priv final String label | |
| writer | back to summary |
|---|---|
| private DocWriter writer | |
| LinkProcessing | back to summary |
|---|---|
| public LinkProcessing(DocGenerator generator, String label) | |
| handle | back to summary |
|---|---|
| pack-priv void handle(Element elt) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final PackageElement |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | Returns: the relative file namethe doc generator generator)Implements abstract io. Return the relative file name of a document. |
| elt | back to summary |
|---|---|
| pack-priv final PackageElement elt | |
| PackageDoc | back to summary |
|---|---|
| pack-priv PackageDoc(PackageElement elt) | |
| id | back to summary |
|---|---|
| public String id() Implements abstract io.
| |
| resolveRelativeFileName | back to summary |
|---|---|
| public String resolveRelativeFileName(DocGenerator generator) Implements abstract io. Return the relative file name of a document.
| |