Uses of Interface
org.htmlparser.Node
Packages that use Node
Package
Description
The basic API classes which will be used by most developers when working with
the HTML Parser.
The filters package contains example filters to select only desired nodes.
The lexer package is the base level I/O subsystem.
The nodes package has the concrete node implementations.
The sax package implements a SAX (Simple API for XML) parser for HTML.
The scanners package contains classes responsible for the tertiary
identification of tags.
The tags package contains specific tags.
Code which can be reused by many classes, is located in this package.
The visitors package contains classes that use the Visitor pattern.
-
Uses of Node in org.htmlparser
Subinterfaces of Node in org.htmlparserModifier and TypeInterfaceDescriptioninterface
This interface represents a comment in the HTML document.interface
This interface represents a tag (<xxx yyy="zzz">) in the HTML document.interface
This interface represents a piece of the content of the HTML document.Methods in org.htmlparser that return NodeModifier and TypeMethodDescriptionNode.getFirstChild()
Get the first child of this node.Node.getLastChild()
Get the last child of this node.Node.getNextSibling()
Get the next sibling to this node.Node.getParent()
Get the parent of this node.Node.getPreviousSibling()
Get the previous sibling to this node.Methods in org.htmlparser with parameters of type Node -
Uses of Node in org.htmlparser.filters
Fields in org.htmlparser.filters declared as NodeMethods in org.htmlparser.filters with parameters of type NodeModifier and TypeMethodDescriptionboolean
Accept nodes that are acceptable to all of its predicate filters.boolean
Accept nodes that match the selector expression.boolean
Accept tags with a certain attribute.boolean
Accept tags with children acceptable to the filter.boolean
Accept tags with parent acceptable to the filter.boolean
Accept tags with a sibling acceptable to the filter.boolean
Accept the node.boolean
Accept nodes that are a LinkTag and have a URL that matches the regex pattern supplied in the constructor.boolean
Accept nodes that are a LinkTag and have a URL that matches the pattern supplied in the constructor.boolean
Accept nodes that are assignable from the class provided in the constructor.boolean
Accept nodes that are not acceptable to the predicate filter.boolean
Accept nodes that are acceptable to any of its predicate filters.boolean
Accept string nodes that match the regular expression.boolean
Accept string nodes that contain the string.boolean
Accept nodes that are tags and have a matching tag name.boolean
Accept nodes that are acceptable to an odd number of its predicate filters.Constructors in org.htmlparser.filters with parameters of type NodeModifierConstructorDescriptionIsEqualFilter
(Node node) Creates a new IsEqualFilter that accepts only the node provided. -
Uses of Node in org.htmlparser.lexer
Methods in org.htmlparser.lexer that return NodeModifier and TypeMethodDescriptionprotected Node
Lexer.makeRemark
(int start, int end) Create a remark node based on the current cursor and the one provided.protected Node
Lexer.makeString
(int start, int end) Create a string node based on the current cursor and the one provided.protected Node
Create a tag node based on the current cursor and the one provided.Lexer.nextNode()
Get the next node from the source.Lexer.nextNode
(boolean quotesmart) Get the next node from the source.Lexer.parseCDATA()
Return CDATA as a text node.Lexer.parseCDATA
(boolean quotesmart) Return CDATA as a text node.protected Node
Lexer.parseJsp
(int start) Parse a java server page node.protected Node
Lexer.parsePI
(int start) Parse an XML processing instruction.protected Node
Lexer.parseRemark
(int start, boolean quotesmart) Parse a comment.protected Node
Lexer.parseString
(int start, boolean quotesmart) Parse a string node.protected Node
Lexer.parseTag
(int start) Parse a tag. -
Uses of Node in org.htmlparser.nodes
Classes in org.htmlparser.nodes that implement NodeModifier and TypeClassDescriptionclass
The concrete base class for all types of nodes (tags, text remarks).class
The remark tag is identified and represented by this class.class
TagNode represents a generic tag.class
Normal text in the HTML document is represented by this class.Fields in org.htmlparser.nodes declared as NodeMethods in org.htmlparser.nodes that return NodeModifier and TypeMethodDescriptionAbstractNode.getFirstChild()
Get the first child of this node.AbstractNode.getLastChild()
Get the last child of this node.AbstractNode.getNextSibling()
Get the next sibling to this node.AbstractNode.getParent()
Get the parent of this node.AbstractNode.getPreviousSibling()
Get the previous sibling to this node.Methods in org.htmlparser.nodes with parameters of type Node -
Uses of Node in org.htmlparser.parserapplications.filterbuilder
Fields in org.htmlparser.parserapplications.filterbuilder declared as Node -
Uses of Node in org.htmlparser.parserapplications.filterbuilder.wrappers
Methods in org.htmlparser.parserapplications.filterbuilder.wrappers with parameters of type NodeModifier and TypeMethodDescriptionboolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.boolean
Predicate to determine whether or not to keep the given node.protected void
HasAttributeFilterWrapper.addAttributes
(Set set, Node node) Add the attribute names from the node to the set of attribute names.protected void
HasAttributeFilterWrapper.addAttributeValues
(Set set, Node node) Add the attribute values from the node to the set of attribute values.protected void
Add the tag name and it's children's tag names to the set of tag names. -
Uses of Node in org.htmlparser.sax
Methods in org.htmlparser.sax with parameters of type Node -
Uses of Node in org.htmlparser.scanners
Methods in org.htmlparser.scanners with parameters of type Node -
Uses of Node in org.htmlparser.tags
Classes in org.htmlparser.tags that implement NodeModifier and TypeClassDescriptionclass
AppletTag represents an <Applet> tag.class
BaseHrefTag represents an <Base> tag.class
A Body Tag.class
A bullet tag.class
A bullet list tag.class
The base class for tags that have an end tag.class
A definition list tag (dl).class
A definition list bullet tag (either DD or DT).class
A div tag.class
The HTML Document Declaration Tag can identify <!DOCTYPE> tags.class
Represents a FORM tag.class
Identifies an frame set tag.class
Identifies a frame tagclass
A heading (h1 - h6) tag.class
A head tag.class
A html tag.class
Identifies an image tag.class
An input tag in a form.class
The JSP/ASP tags like <%...%> can be identified by this class.class
A label tag.class
Identifies a link tag.class
A Meta Tagclass
ObjectTag represents an <Object> tag.class
An option tag within a form.class
A paragraph (p) tag.class
The XML processing instructions like <?xml ...class
A script tag.class
A select tag within a form.class
A span tag.class
A StyleTag represents a <style> tag.class
A table column tag.class
A table header tag.class
A table row tag.class
A table tag.class
A text area tag within a form.class
A title tag.Methods in org.htmlparser.tags that return NodeModifier and TypeMethodDescriptionCompositeTag.childAt
(int index) Get child at given indexCompositeTag.getChild
(int index) Get the child of this node at the given position.Node[]
CompositeTag.getChildrenAsNodeArray()
Get the children as an array ofNode
objects.Methods in org.htmlparser.tags with parameters of type NodeModifier and TypeMethodDescriptionint
CompositeTag.findPositionOf
(Node searchNode) Returns the node number of a child node given the node object. -
Uses of Node in org.htmlparser.util
Fields in org.htmlparser.util declared as NodeModifier and TypeFieldDescriptionprotected Node
NodeTreeWalker.mCurrentNode
The current Node element, which will be a child of the root Node, or null.protected Node
NodeTreeWalker.mNextNode
The next Node element after the current Node element.protected Node
NodeTreeWalker.mRootNode
The root Node element which defines the scope of the current tree to walk.Methods in org.htmlparser.util that return NodeModifier and TypeMethodDescriptionNodeList.elementAt
(int i) static Node[]
ParserUtils.findTypeInNode
(Node node, Class type) Search given node and pick up any objects of given type.NodeTreeWalker.getCurrentNode()
Get the Node in the tree that the NodeTreeWalker is current at.protected Node
NodeTreeWalker.getNextNodeBreadthFirst()
Traverses to the next Node from the current Node using breadth-first tree traversalprotected Node
NodeTreeWalker.getNextNodeDepthFirst()
Traverses to the next Node from the current Node using depth-first tree traversalNodeTreeWalker.getRootNode()
Get the root Node that defines the scope of the tree to traverse.IteratorImpl.nextNode()
Get the next node.NodeIterator.nextNode()
Get the next node.NodeTreeWalker.nextNode()
Traverses to the next Node from the current Node, using either depth-first or breadth-first tree traversal as appropriate.SimpleNodeIterator.nextNode()
Get the next node.NodeList.remove
(int index) Remove the node at index.Node[]
NodeList.toNodeArray()
Methods in org.htmlparser.util with parameters of type NodeModifier and TypeMethodDescriptionvoid
boolean
Check to see if the NodeList contains the supplied Node.void
NodeList.copyToNodeArray
(Node[] array) static Node[]
ParserUtils.findTypeInNode
(Node node, Class type) Search given node and pick up any objects of given type.int
Finds the index of the supplied Node.protected void
NodeTreeWalker.initRootNode
(Node rootNode) Sets the root Node to be the given Node.void
Insert the given node at the head of the list.boolean
Remove the supplied Node from the list.void
NodeTreeWalker.setRootNode
(Node rootNode) Sets the specified Node as the root Node.Constructors in org.htmlparser.util with parameters of type NodeModifierConstructorDescriptionCreate a one element node list.NodeTreeWalker
(Node rootNode) Creates a new instance of NodeTreeWalker using depth-first tree traversal, without limits on how deep it may traverse.NodeTreeWalker
(Node rootNode, boolean depthFirst) Creates a new instance of NodeTreeWalker using the specified type of tree traversal, without limits on how deep it may traverse.NodeTreeWalker
(Node rootNode, boolean depthFirst, int maxDepth) Creates a new instance of NodeTreeWalker using the specified type of tree traversal and maximum depth from the root Node to traverse. -
Uses of Node in org.htmlparser.visitors
Methods in org.htmlparser.visitors that return Node