org.cyberneko.html
public static class HTMLElements.Element extends Object
| Field Summary | |
|---|---|
| short | bounds The bounding element code. |
| static int | BLOCK Block element. |
| short[] | closes List of elements this element can close. |
| short | code The element code. |
| static int | CONTAINER Container element. |
| static int | EMPTY Empty element. |
| int | flags Informational flags. |
| static int | INLINE Inline element. |
| String | name The element name. |
| HTMLElements.Element[] | parent Parent elements. |
| short[] | parentCodes Parent elements. |
| static int | SPECIAL Special element. |
| Constructor Summary | |
|---|---|
| Element(short code, String name, int flags, short parent, short[] closes)
Constructs an element object.
| |
| Element(short code, String name, int flags, short parent, short bounds, short[] closes)
Constructs an element object.
| |
| Element(short code, String name, int flags, short[] parents, short[] closes)
Constructs an element object.
| |
| Element(short code, String name, int flags, short[] parents, short bounds, short[] closes)
Constructs an element object.
| |
| Method Summary | |
|---|---|
| boolean | closes(short tag)
Returns true if this element can close the specified Element.
|
| boolean | equals(Object o) Returns true if the objects are equal. |
| int | hashCode() Returns a hash code for this object. |
| boolean | isBlock() Returns true if this element is a block element. |
| boolean | isContainer() Returns true if this element is a container element. |
| boolean | isEmpty() Returns true if this element is an empty element. |
| boolean | isInline() Returns true if this element is an inline element. |
| boolean | isSpecial()
Returns true if this element is special -- if its content
should be parsed ignoring markup. |
Parameters: code The element code. name The element name. flags Informational flags parent Natural closing parent name. closes List of elements this element can close.
Parameters: code The element code. name The element name. flags Informational flags parent Natural closing parent name. closes List of elements this element can close.
Parameters: code The element code. name The element name. flags Informational flags parents Natural closing parent names. closes List of elements this element can close.
Parameters: code The element code. name The element name. flags Informational flags parents Natural closing parent names. closes List of elements this element can close.
Parameters: tag The element.