Example usage for Java org.jsoup.select Elements fields, constructors, methods, implement or subclass
The text is from its open source code.
Elements() | |
Elements(int initialCapacity) | |
Elements(Collection | |
Elements(List | |
Elements(Element... elements) |
Elements | append(String html) Add the supplied HTML to the end of each matched element's inner HTML. |
String | attr(String attributeKey) Get an attribute value from the first matched element that has the attribute. |
Elements | attr(String attributeKey, String attributeValue) Set an attribute on all matched elements. |
Elements | eq(int index) Get the nth matched element as an Elements object. |
Element | first() Get the first matched element. |
Class> | getClass() Returns the runtime class of this Object . |
boolean | hasAttr(String attributeKey) Checks if any of the matched elements have this attribute defined. |
boolean | hasClass(String className) Determine if any of the matched elements have this class name set in their class attribute. |
boolean | hasText() Test if any matched Element has any text content, that is not just whitespace. |
String | html() Get the combined inner HTML of all matched elements. |
Elements | html(String html) Set the inner HTML of each matched element. |
Element | last() Get the last matched element. |
Elements | not(String query) Remove elements from this list that match the Selector query. |
String | outerHtml() Get the combined outer HTML of all matched elements. |
Elements | parents() Get all of the parents and ancestor elements of the matched elements. |
Elements | remove() Remove each matched element from the DOM. |
Elements | removeAttr(String attributeKey) Remove an attribute from every matched element. |
Elements | select(String query) Find matching elements within this element list. |
String | text() Get the combined text of all the matched elements. |
String | toString() Get the combined outer HTML of all matched elements. |
Elements | traverse(NodeVisitor nodeVisitor) Perform a depth-first traversal on each of the selected elements. |
Elements | unwrap() Removes the matched elements from the DOM, and moves their children up into their parents. |
String | val() Get the form element's value of the first matched element. |