Package io.vertx.docgen
Class JavaDocGenerator
java.lang.Object
io.vertx.docgen.JavaDocGenerator
- All Implemented Interfaces:
DocGenerator
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.sun.source.util.DocTreesprotected ProcessingEnvironment -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidInit the generator.renderSource(com.sun.source.util.TreePath path, List<? extends com.sun.source.tree.Tree> trees, String source) renderSource(ExecutableElement elt, String source) Render the source fragment for the Java language.renderSource(TypeElement elt, String source) Resolve a constructor link.Resolve a field link.resolveLabel(Element elt, String defaultLabel) Resolve a label.Resolve a method link.Resolve a constructor link.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.docgen.DocGenerator
resolveRelativeFileName
-
Field Details
-
docTrees
protected com.sun.source.util.DocTrees docTrees -
processingEnv
-
-
Constructor Details
-
JavaDocGenerator
public JavaDocGenerator()
-
-
Method Details
-
init
Description copied from interface:DocGeneratorInit the generator.- Specified by:
initin interfaceDocGenerator- Parameters:
env- the processor environment
-
getName
- Specified by:
getNamein interfaceDocGenerator- Returns:
- the generator name
-
resolveTypeLink
Description copied from interface:DocGeneratorResolve a constructor link.- Specified by:
resolveTypeLinkin interfaceDocGenerator- Parameters:
elt- the element linked to- Returns:
- the resolved http link or null if the link cannot be resolved
-
resolveConstructorLink
Description copied from interface:DocGeneratorResolve a constructor link.- Specified by:
resolveConstructorLinkin interfaceDocGenerator- Parameters:
elt- the element linked to- Returns:
- the resolved http link or null if the link cannot be resolved
-
resolveMethodLink
Description copied from interface:DocGeneratorResolve a method link.- Specified by:
resolveMethodLinkin interfaceDocGenerator- Parameters:
elt- the element linked to- Returns:
- the resolved http link or null if the link cannot be resolved
-
resolveLabel
Description copied from interface:DocGeneratorResolve a label.- Specified by:
resolveLabelin interfaceDocGenerator- Parameters:
elt- the labelled elementdefaultLabel- the default label- Returns:
- the resolved label or null if a label cannot be resolved
-
resolveFieldLink
Description copied from interface:DocGeneratorResolve a field link.- Specified by:
resolveFieldLinkin interfaceDocGenerator- Parameters:
elt- the element linked to- Returns:
- the resolved http link or null if the link cannot be resolved
-
renderSource
Render the source fragment for the Java language. Java being the pivot language, we consider this method as the _default_ behavior. This method is final as it must not be overridden by any extension.- Specified by:
renderSourcein interfaceDocGenerator- Parameters:
elt- the elementsource- the source- Returns:
- the fragment
-
renderSource
-
renderSource
-