public class JavaDocGenerator extends Object implements DocGenerator
| Modifier and Type | Field and Description |
|---|---|
protected com.sun.source.util.DocTrees |
docTrees |
protected ProcessingEnvironment |
processingEnv |
| Constructor and Description |
|---|
JavaDocGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
void |
init(ProcessingEnvironment env)
Init the generator.
|
String |
renderSource(ExecutableElement elt,
String source)
Render the source fragment for the Java language.
|
String |
renderSource(com.sun.source.util.TreePath path,
List<? extends com.sun.source.tree.Tree> trees,
String source) |
String |
renderSource(TypeElement elt,
String source) |
String |
resolveConstructorLink(ExecutableElement elt,
Coordinate coordinate)
Resolve a constructor link.
|
String |
resolveFieldLink(VariableElement elt,
Coordinate coordinate)
Resolve a field link.
|
String |
resolveLabel(Element elt,
String defaultLabel)
Resolve a label.
|
String |
resolveMethodLink(ExecutableElement elt,
Coordinate coordinate)
Resolve a method link.
|
String |
resolveTypeLink(TypeElement elt,
Coordinate coordinate)
Resolve a constructor link.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveRelativeFileNameprotected com.sun.source.util.DocTrees docTrees
protected ProcessingEnvironment processingEnv
public void init(ProcessingEnvironment env)
DocGeneratorinit in interface DocGeneratorenv - the processor environmentpublic String getName()
getName in interface DocGeneratorpublic String resolveTypeLink(TypeElement elt, Coordinate coordinate)
DocGeneratorresolveTypeLink in interface DocGeneratorelt - the element linked tocoordinate - the optional coordinate of the jar containing the elementpublic String resolveConstructorLink(ExecutableElement elt, Coordinate coordinate)
DocGeneratorresolveConstructorLink in interface DocGeneratorelt - the element linked tocoordinate - the optional coordinate of the jar containing the elementpublic String resolveMethodLink(ExecutableElement elt, Coordinate coordinate)
DocGeneratorresolveMethodLink in interface DocGeneratorelt - the element linked tocoordinate - the optional coordinate of the jar containing the elementpublic String resolveLabel(Element elt, String defaultLabel)
DocGeneratorresolveLabel in interface DocGeneratorelt - the labelled elementdefaultLabel - the default labelpublic String resolveFieldLink(VariableElement elt, Coordinate coordinate)
DocGeneratorresolveFieldLink in interface DocGeneratorelt - the element linked tocoordinate - the optional coordinate of the jar containing the elementpublic String renderSource(ExecutableElement elt, String source)
renderSource in interface DocGeneratorelt - the elementsource - the sourcepublic String renderSource(TypeElement elt, String source)
Copyright © 2018 Eclipse. All rights reserved.