public class Tag extends SimpleNode<HtmlToken>
构造器和说明 |
---|
Tag() |
限定符和类型 | 方法和说明 |
---|---|
Tag |
add(String tagName,
String... attrs) |
Tag |
addClass(String name) |
Tag |
attr(String name,
int value) |
Tag |
attr(String name,
String value) |
List<Tag> |
childrenTag() |
boolean |
hasClass(String name) |
String |
id() |
Tag |
id(String id) |
boolean |
isBlock() |
boolean |
isBody() |
boolean |
isChildAllInline() |
boolean |
isHtml() |
boolean |
isInline() |
boolean |
isNoChild() |
String |
name() |
Tag |
setText(String text) |
static Tag |
tag(String name,
String... attrs) |
static Tag |
text(String text) |
String |
toString() |
String |
toString(int level) |
add, addFirst, child, clearChildren, countChildren, depth, desc, eachChild, firstChild, get, getAncestors, getChildren, getIndex, getNextSibling, getPrevSibling, hasChild, index, insertBefore, isFirst, isLast, isRoot, iterator, lastChild, next, next, next, parent, parent, parents, pop, popFirst, prev, prev, prev, remove, removeChild, set, top
public boolean isBlock()
public boolean isInline()
public boolean isNoChild()
public boolean isHtml()
public boolean isBody()
public boolean isChildAllInline()
public String name()
public boolean hasClass(String name)
public String id()
public String toString()
toString
在类中 SimpleNode<HtmlToken>
Copyright © 2017. All rights reserved.