NullPointerException for any arguments that are null
or that are arrays or collections that contain null.
Many methods in this class return this, to enable a series
of chained method calls on a single object.
Terminology: An HTML element is typically composed of a start tag, some
enclosed content and typically an end tag. The start tag contains any
attributes for the element. See:
HTML element.
| Modifier and Type | Field and Description |
|---|---|
| private Map | attrs
The attributes for the HTML element. |
| private static final HtmlTree | |
| private List | content
The enclosed content ("inner HTML") for this HTML element. |
| private static final HtmlTree | |
| public static final BitSet | |
| public static final BitSet | |
| public final HtmlTag | tag
The tag for the HTML element. |
| private static final HtmlTree |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static HtmlTree | |
| public static HtmlTree | |
| public HtmlTree | Returns: this HTML treethe content content)Overrides jdk. Adds additional content for the HTML element. |
| public HtmlTree | add(CharSequence
string content that needs to be added stringContent)Overrides jdk. Adds text content for the HTML element. |
| public HtmlTree | |
| public <T> HtmlTree | Returns: this objectthe items items, Function<T, Content> the map function to generate the content for each item mapper)Overrides jdk. Adds each of a collection of items, using a map function to create the content for each item. |
| public HtmlTree | |
| public HtmlTree | |
| public HtmlTree | Returns: this HTML treethe content to add content)Adds content to this HTML tree without checking whether it is discardable. |
| private static BitSet | |
| private static BitSet | |
| private static BitSet | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public int | charCount()
Overrides jdk. Returns the number of characters of plain text content in this object. |
| private static HtmlTag | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static String | |
| public static HtmlTree | |
| public Map | |
| public List | |
| public boolean | |
| public boolean | Returns: true if the HTML tree has attributes else return falseReturns true if the HTML tree has attributes. |
| public boolean | Returns: true if the HTML tree has content else return falseReturns true if the HTML tree has content. |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | Returns: the elementthe tag for the heading headingTag, HtmlStyle the stylesheet class style, Content the content body)Creates an HTML heading element with the given style and content. |
| public static HtmlTree | Returns: the elementthe tag for the heading headingTag, Content the content body)Creates an HTML heading element with the given style and content. |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public boolean | Returns: true if the HTML tree can be discarded without affecting the outputOverrides jdk. Returns |
| public boolean | isEmpty()
Implements abstract jdk. Returns true if the content is empty. |
| public boolean | Returns: true if this is an inline elementReturns true if the element is a normal element that is phrasing content. |
| public boolean | isPhrasingContent()
Overrides jdk. Returns true if the content is "phrasing content". |
| public boolean | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | Returns: the elementthe value for the httpEquiv, String http-equiv attributethe type of content, to be used in the content, String content attributethe character set for the document, to be used in the charset)content attributeCreates an HTML |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public HtmlTree | |
| public HtmlTree | |
| public HtmlTree | |
| public HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| private static String | |
| public Content | stripTags()
Overrides jdk. Returns the plain text of this content with HTML tags removed. |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static HtmlTree | |
| public static <T> HtmlTree | Returns: the elementthe style style, Collection<T> the items to be added to the list items, Function<T, Content> a mapper to create the content for each item mapper)Creates an HTML |
| private static HtmlTree | |
| public static HtmlTree | |
| 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 |