content
Contained node.
protected Nodestatic final shortprotected AttValstatic final shortprotected booleanstatic final shortprotected Nodestatic final shortprotected Stringprotected intstatic final shortprotected booleanstatic final shortprotected Nodeprotected booleanprotected Nodeprotected Nodestatic final shortprotected Nodestatic final shortstatic final shortstatic final shortprotected intstatic final shortstatic final shortprotected Dictstatic final shortprotected byte[]protected shortprotected Dictstatic final shortvoidaddAttribute(String name,
String value) voidvoidcheckAttributes(Lexer lexer) booleanprotected NodecloneNode(boolean deep) static voidcoerceNode(Lexer lexer,
Node node,
Dict tag) voidstatic NodediscardElement(Node element) protected static Nodebooleanstatic voidfixEmptyRow(Lexer lexer,
Node row) protected NodegetAttrByName(String name) booleanstatic voidinsertDocType(Lexer lexer,
Node element,
Node doctype) static booleaninsertMisc(Node element,
Node node) voidinsertNodeAfterElement(Node node) static voidinsertNodeAsParent(Node element,
Node node) voidinsertNodeAtEnd(Node node) voidinsertNodeAtStart(Node node) static voidinsertNodeBeforeElement(Node element,
Node node) booleanbooleanisDescendantOf(Dict tag) booleanbooleanbooleanstatic voidmoveBeforeTable(Node row,
Node node,
TagTable tt) voidremoveAttribute(AttVal attr) voidvoidrepairDuplicateAttributes(Lexer lexer) protected voidsetType(short newType) toString()static voidtrimEmptyElement(Lexer lexer,
Node element) static voidtrimInitialSpace(Lexer lexer,
Node element,
Node text) <p> hello <em> world </em> to
<p> hello <em> world </em>.static voidtrimSpaces(Lexer lexer,
Node element) static voidtrimTrailingSpace(Lexer lexer,
Node element,
Node last) type - node type: Node.ROOT_NODE | Node.DOCTYPE_TAG | Node.COMMENT_TAG | Node.PROC_INS_TAG | Node.TEXT_NODE |
Node.START_TAG | Node.END_TAG | Node.START_END_TAG | Node.CDATA_TAG | Node.SECTION_TAG | Node. ASP_TAG |
Node.JSTE_TAG | Node.PHP_TAG | Node.XML_DECLtextarray - array of bytes contained in the Nodestart - start positionend - end positiontype - node type: Node.ROOT_NODE | Node.DOCTYPE_TAG | Node.COMMENT_TAG | Node.PROC_INS_TAG | Node.TEXT_NODE |
Node.START_TAG | Node.END_TAG | Node.START_END_TAG | Node.CDATA_TAG | Node.SECTION_TAG | Node. ASP_TAG |
Node.JSTE_TAG | Node.PHP_TAG | Node.XML_DECLtextarray - array of bytes contained in the Nodestart - start positionend - end positionelement - tag namett - tag table instancelexer - Lexerlexer - Lexerattr - attribute to removenode - to insertnode - Node to insertnode - new node to insertlexer - Lexerelement - nodelast - last child of elementlexer - Lexertrue if the node content empty or blank<p> hello <em> world </em> to
<p> hello <em> world </em>.
Trims initial space, by moving it before the start tag, or if this element
is the first in parent's content, then by discarding the space.lexer - Lexerelement - parent nodetext - text nodetag - descendant tagtrue if node is contained in tagtrue if type is START_TAG | START_END_TAGrow - Row nodenode - Node which should be moved before the tablett - tag tabletrue if this node represents a user-defined tag.true if the node has one childclassname - css class namedeep - if true deep clone the node (also clones all the contained nodes)newType - a valid node type constanttrue if the script node contains javascriptfalse if this node should be empty