public interface ConverterContext
JavadocBlockTagsToXhtmlConverter, JavadocInlineTagsToXhtmlConverter,
JavadocBlockTagToHtmlConverter and JavadocBlockTagToHtmlConverter.
It contains metadata about the container class and allows to resolve class or member names
which are not fully qualified as well as creating (deep-) links to javadoc pages.| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetUrl() |
<T> T |
getAttribute(String name,
Class<T> clazz,
T defaultValue)
Retrieves some attribute value from the current context.
|
URI |
getInternalJavadocSiteBaseUrl()
Returns the base url to use for internal javadoc links
|
String |
getLocation() |
Optional<String> |
getModuleName() |
String |
getPackageName() |
String |
getStaticFieldValue(FullyQualifiedJavadocReference reference)
Returns the value of a referenced static field.
|
URI |
getUrl(FullyQualifiedJavadocReference reference)
Returns a (deep-)link to the javadoc page for the given reference
|
boolean |
isReferencedBy(FullyQualifiedJavadocReference reference) |
FullyQualifiedJavadocReference |
resolveReference(JavadocReference reference)
Resolves a given javadoc reference, according to the rules of
Javadoc's search order.
|
<T> T |
setAttribute(String name,
T value)
Stores some attribute in the current context
|
Optional<String> getModuleName()
String getPackageName()
boolean isReferencedBy(FullyQualifiedJavadocReference reference)
reference - String getLocation()
FullyQualifiedJavadocReference resolveReference(JavadocReference reference)
reference - the reference to resolveIllegalArgumentException - in case the reference cannot be resolvedboolean canGetUrl()
true if links to javadoc pages could potentially be generated with
getUrl(FullyQualifiedJavadocReference).URI getUrl(FullyQualifiedJavadocReference reference)
reference - the reference for which to get the urlIllegalArgumentException - in case no javadoc link could be generated for the given referenceIllegalStateException - in case no javadoc source sites have been configured
(i.e. canGetUrl() returns false)String getStaticFieldValue(FullyQualifiedJavadocReference reference)
reference - the code reference towards a static fieldreferenceIllegalArgumentException - in case the reference does not point to a valid static fieldURI getInternalJavadocSiteBaseUrl()
null).<T> T setAttribute(String name, T value)
T - name - value - <T> T getAttribute(String name, Class<T> clazz, T defaultValue)
T - name - clazz - defaultValue - null if it does not existCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.