Class LinkArgument
java.lang.Object
org.codehaus.groovy.tools.groovydoc.LinkArgument
Represents a link pair (href, packages) with optional JPMS module.
The packages are comma separated. When a module is specified, the
module name is inserted between the base href and the package path,
matching the JPMS-era Javadoc layout (e.g.
.../api/java.base/java/lang/Object.html).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHref()Get the href attribute, with the module name appended when set.Get the module attribute.Get the packages attribute.voidSet the href attribute.voidSet the module attribute.voidsetPackages(String packages) Set the packages attribute.
-
Constructor Details
-
LinkArgument
public LinkArgument()
-
-
Method Details
-
getPackages
Get the packages attribute.- Returns:
- the packages attribute.
-
setPackages
Set the packages attribute.- Parameters:
packages- the comma separated package prefixes corresponding to this link
-
getHref
Get the href attribute, with the module name appended when set. For pre-JPMS external docs, returns the raw href; for JPMS-aware external docs (e.g. JDK 9+), returnshref + module + "/".- Returns:
- the effective base URL for this link
-
setHref
Set the href attribute.- Parameters:
hr- aStringvalue representing the URL to use for this link
-
getModule
Get the module attribute.- Returns:
- the module attribute, or an empty string if not set
-
setModule
Set the module attribute. When set, the module name is inserted between the base href and the package path, yielding JPMS-era Javadoc URLs such as.../api/java.base/java/lang/Object.html.- Parameters:
module- the JPMS module name (e.g.java.base)
-