Package | Description |
---|---|
org.htmlparser |
The basic API classes which will be used by most developers when working with
the HTML Parser.
|
org.htmlparser.beans |
The beans package contains Java Beans using the HTML Parser.
|
org.htmlparser.nodeDecorators |
The nodeDecorators package contains classes that use the Decorator pattern.
|
org.htmlparser.nodes |
The nodes package has the concrete node implementations.
|
org.htmlparser.parserapplications.filterbuilder | |
org.htmlparser.scanners |
The scanners package contains classes responsible for the tertiary
identification of tags.
|
org.htmlparser.tags |
The tags package contains specific tags.
|
org.htmlparser.util |
Code which can be reused by many classes, is located in this package.
|
org.htmlparser.visitors |
The visitors package contains classes that use the Visitor pattern.
|
Modifier and Type | Method and Description |
---|---|
NodeList |
Parser.extractAllNodesThatMatch(NodeFilter filter)
Extract all nodes matching the given filter.
|
NodeList |
Node.getChildren()
Get the children of this node.
|
NodeList |
Parser.parse(NodeFilter filter)
Parse the given resource, using the filter provided.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.collectInto(NodeList list,
NodeFilter filter)
Collect this node and its child nodes into a list, provided the node
satisfies the filtering criteria.
|
void |
Node.setChildren(NodeList children)
Set the children of this node.
|
Modifier and Type | Field and Description |
---|---|
protected NodeList |
FilterBean.mNodes
The nodes extracted from the URL.
|
Modifier and Type | Method and Description |
---|---|
protected NodeList |
FilterBean.applyFilters()
Apply each of the filters.
|
NodeList |
FilterBean.getNodes()
Return the nodes of the URL matching the filter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FilterBean.updateNodes(NodeList nodes)
Assign the
Nodes property, firing the property change. |
Modifier and Type | Method and Description |
---|---|
NodeList |
AbstractNodeDecorator.getChildren()
Deprecated.
Get the children of this node.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractNodeDecorator.collectInto(NodeList list,
NodeFilter filter)
Deprecated.
|
void |
AbstractNodeDecorator.setChildren(NodeList children)
Deprecated.
Set the children of this node.
|
Modifier and Type | Field and Description |
---|---|
protected NodeList |
AbstractNode.children
The children of this node.
|
Modifier and Type | Method and Description |
---|---|
NodeList |
AbstractNode.getChildren()
Get the children of this node.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractNode.collectInto(NodeList list,
NodeFilter filter)
Collect this node and its child nodes (if-applicable) into the collectionList parameter, provided the node
satisfies the filtering criteria.
|
void |
AbstractNode.setChildren(NodeList children)
Set the children of this node.
|
Constructor and Description |
---|
HtmlTreeModel(NodeList root)
Create an HTML tree view.
|
Modifier and Type | Method and Description |
---|---|
Tag |
StyleScanner.scan(Tag tag,
Lexer lexer,
NodeList stack)
Scan for style definitions.
|
Tag |
CompositeTagScanner.scan(Tag tag,
Lexer lexer,
NodeList stack)
Collect the children.
|
Tag |
Scanner.scan(Tag tag,
Lexer lexer,
NodeList stack)
Scan the tag.
|
Tag |
TagScanner.scan(Tag tag,
Lexer lexer,
NodeList stack)
Scan the tag.
|
Tag |
ScriptScanner.scan(Tag tag,
Lexer lexer,
NodeList stack)
Scan for script.
|
Modifier and Type | Method and Description |
---|---|
NodeList |
FormTag.getFormInputs()
Get the list of input fields.
|
NodeList |
FormTag.getFormTextareas()
Get the list of text areas.
|
NodeList |
FrameSetTag.getFrames()
Returns the frames.
|
NodeList |
CompositeTag.searchFor(java.lang.Class classType,
boolean recursive)
Collect all objects that are of a certain type
Note that this will not check for parent types, and will not
recurse through child tags
|
NodeList |
CompositeTag.searchFor(java.lang.String searchString)
Searches for all nodes whose text representation contains the search string.
|
NodeList |
CompositeTag.searchFor(java.lang.String searchString,
boolean caseSensitive)
Searches for all nodes whose text representation contains the search string.
|
NodeList |
CompositeTag.searchFor(java.lang.String searchString,
boolean caseSensitive,
java.util.Locale locale)
Searches for all nodes whose text representation contains the search string.
|
Modifier and Type | Method and Description |
---|---|
void |
CompositeTag.collectInto(NodeList list,
NodeFilter filter)
Collect this node and its child nodes (if-applicable) into the list parameter,
provided the node satisfies the filtering criteria.
|
void |
FrameSetTag.setFrames(NodeList frames)
Sets the frames (children of this tag).
|
Modifier and Type | Method and Description |
---|---|
NodeList |
NodeList.extractAllNodesThatMatch(NodeFilter filter)
Filter the list with the given filter non-recursively.
|
NodeList |
NodeList.extractAllNodesThatMatch(NodeFilter filter,
boolean recursive)
Filter the list with the given filter.
|
NodeList |
NodeList.searchFor(java.lang.Class classType)
Convenience method to search for nodes of the given type non-recursively.
|
NodeList |
NodeList.searchFor(java.lang.Class classType,
boolean recursive)
Convenience method to search for nodes of the given type.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeList.add(NodeList list)
Add another node list to this one.
|
Modifier and Type | Method and Description |
---|---|
NodeList |
HtmlPage.getBody() |
HTML Parser is an open source library released under LGPL.