<head> element.
Many methods return the current object, to facilitate fluent builder-style usage.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private List | |
| private List | |
| private DocPath | |
| private String | |
| private String | |
| private final Runtime. | |
| private final List | |
| private final ZonedDateTime | |
| private String | |
| private boolean | |
| private final List | |
| private List | |
| private Script | |
| private DocPath | |
| private final DocPath | |
| private final List | |
| private boolean | |
| private boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | Head(DocPath
the path for the file that will include this HEAD element path, Runtime.the doclet version docletVersion,Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public Head | Returns: this objectthe content contents)Adds additional content to be included in the HEAD element. |
| public Head | Returns: this objectwhether or not a default script will be included addDefaultScript)Specifies whether or not to add a reference to a default script to be included in the HEAD element. |
| public Head | Returns: this objectthe list of keywords, or null if none need to be added keywords)Adds a list of keywords to appear in META |
| public Head | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private Comment | |
| public boolean | Returns: falseImplements abstract jdk. Returns true if the content is empty. |
| public Head | Returns: this objectthe list of additional script files scriptsSets the list of additional script files to be added to the HEAD element. |
| public void | setCanonicalLink(DocPath
the value for the canonical link link)Specifies a value for a
canonical link
in the |
| public Head | Returns: this objectthe charset charset)Sets the charset to be declared in a META |
| public Head | |
| public Head | |
| public Head | |
| public Head | Returns: this objectthe main stylesheet, or null to use the default main, List<DocPath> a list of any additional stylesheets to be included additional, List<DocPath> a list of module- or package-local stylesheets to be included local)Sets the main and any additional stylesheets to be listed in the HEAD element. |
| public Head | Returns: this objecttrue to enable syntax highligtingEnables or disables support for syntax highlighting. |
| public Head | Returns: this objecttrue if timestamps should be be added. timestamp)Sets whether or not timestamps should be recorded in the HEAD element. |
| public Head | |
| private Content | |
| public boolean | write(Writer out, String newline, boolean atNewline)
Implements abstract jdk. Writes content to a writer, using a given newline sequence, which should be
either |
| addDefaultScript | back to summary |
|---|---|
| private boolean addDefaultScript | |
| additionalScripts | back to summary |
|---|---|
| private List<HtmlConfiguration. | |
| additionalStylesheets | back to summary |
|---|---|
| private List<DocPath> additionalStylesheets | |
| canonicalLink | back to summary |
|---|---|
| private DocPath canonicalLink | |
| charset | back to summary |
|---|---|
| private String charset | |
| description | back to summary |
|---|---|
| private String description | |
| docletVersion | back to summary |
|---|---|
| private final Runtime. | |
| extraContent | back to summary |
|---|---|
| private final List<Content> extraContent | |
| generatedDate | back to summary |
|---|---|
| private final ZonedDateTime generatedDate | |
| generator | back to summary |
|---|---|
| private String generator | |
| index | back to summary |
|---|---|
| private boolean index | |
| keywords | back to summary |
|---|---|
| private final List<String> keywords | |
| localStylesheets | back to summary |
|---|---|
| private List<DocPath> localStylesheets | |
| mainBodyScript | back to summary |
|---|---|
| private Script mainBodyScript | |
| mainStylesheet | back to summary |
|---|---|
| private DocPath mainStylesheet | |
| pathToRoot | back to summary |
|---|---|
| private final DocPath pathToRoot | |
| scripts | back to summary |
|---|---|
| private final List<Script> scripts | |
| showTimestamp | back to summary |
|---|---|
| private boolean showTimestamp | |
| syntaxHighlight | back to summary |
|---|---|
| private boolean syntaxHighlight | |
| title | back to summary |
|---|---|
| private String title | |
| Head | back to summary |
|---|---|
| public Head(DocPath path, Runtime. Creates a | |
| addContent | back to summary |
|---|---|
| public Head addContent(Content... contents) Adds additional content to be included in the HEAD element. | |
| addDefaultScript | back to summary |
|---|---|
| public Head addDefaultScript(boolean addDefaultScript) Specifies whether or not to add a reference to a default script to be included in the HEAD element. The default script will normally be included; this method may be used to prevent that.
| |
| addKeywords | back to summary |
|---|---|
| public Head addKeywords(List<String> keywords) Adds a list of keywords to appear in META | |
| addScript | back to summary |
|---|---|
| public Head addScript(Script script) Adds a script to be included in the HEAD element. | |
| addScriptElement | back to summary |
|---|---|
| private void addScriptElement(HtmlTree head, DocPath filePath) | |
| addScriptElement | back to summary |
|---|---|
| private void addScriptElement(HtmlTree head, HtmlConfiguration. | |
| addScripts | back to summary |
|---|---|
| private void addScripts(HtmlTree head) | |
| addStylesheet | back to summary |
|---|---|
| private void addStylesheet(HtmlTree head, DocPath stylesheet) | |
| addStylesheets | back to summary |
|---|---|
| private void addStylesheets(HtmlTree head) | |
| getGeneratedBy | back to summary |
|---|---|
| private Comment getGeneratedBy(boolean timestamp, ZonedDateTime buildDate) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract jdk. Doc from jdk. Returns true if the content is empty. Implementation Specification This implementation always returns
| |
| setAdditionalScripts | back to summary |
|---|---|
| public Head setAdditionalScripts(List<HtmlConfiguration. Sets the list of additional script files to be added to the HEAD element. The path for the script files must be relative to the root of the generated documentation hierarchy.
| |
| setCanonicalLink | back to summary |
|---|---|
| public void setCanonicalLink(DocPath link) Specifies a value for a
canonical link
in the
| |
| setCharset | back to summary |
|---|---|
| public Head setCharset(String charset) Sets the charset to be declared in a META | |
| setDescription | back to summary |
|---|---|
| public Head setDescription(String description) Sets the content for the description META element. | |
| setGenerator | back to summary |
|---|---|
| public Head setGenerator(String generator) Sets the content for the generator META element. | |
| setIndex | back to summary |
|---|---|
| public Head setIndex(boolean index, Script mainBodyScript) Sets whether or not to include the supporting scripts and stylesheets for the
"search" feature.
If the feature is enabled, a | |
| setStylesheets | back to summary |
|---|---|
| public Head setStylesheets(DocPath main, List<DocPath> additional, List<DocPath> local) Sets the main and any additional stylesheets to be listed in the HEAD element. The paths for the stylesheets must be relative to the root of the generated documentation hierarchy. | |
| setSyntaxHighlight | back to summary |
|---|---|
| public Head setSyntaxHighlight(boolean value) Enables or disables support for syntax highlighting.
| |
| setTimestamp | back to summary |
|---|---|
| public Head setTimestamp(boolean timestamp) Sets whether or not timestamps should be recorded in the HEAD element. The timestamp will be recorded in a comment, and in an appropriate META element, depending on the HTML version specified when this object was created.
| |
| setTitle | back to summary |
|---|---|
| public Head setTitle(String title) Sets the title to appear in the TITLE element. | |
| toContent | back to summary |
|---|---|
| private Content toContent() Returns the HTML for the HEAD element.
| |
| write | back to summary |
|---|---|
| public boolean write(Writer out, String newline, boolean atNewline) throws IOException Implements abstract jdk. Doc from jdk. Writes content to a writer, using a given newline sequence, which should be
either
| |