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 TypeInterfaceDescriptioninterfaceThis interface represents a comment in the HTML document.interfaceThis interface represents a tag (<xxx yyy="zzz">) in the HTML document.interfaceThis 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 TypeMethodDescriptionbooleanAccept nodes that are acceptable to all of its predicate filters.booleanAccept nodes that match the selector expression.booleanAccept tags with a certain attribute.booleanAccept tags with children acceptable to the filter.booleanAccept tags with parent acceptable to the filter.booleanAccept tags with a sibling acceptable to the filter.booleanAccept the node.booleanAccept nodes that are a LinkTag and have a URL that matches the regex pattern supplied in the constructor.booleanAccept nodes that are a LinkTag and have a URL that matches the pattern supplied in the constructor.booleanAccept nodes that are assignable from the class provided in the constructor.booleanAccept nodes that are not acceptable to the predicate filter.booleanAccept nodes that are acceptable to any of its predicate filters.booleanAccept string nodes that match the regular expression.booleanAccept string nodes that contain the string.booleanAccept nodes that are tags and have a matching tag name.booleanAccept 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 NodeLexer.makeRemark(int start, int end) Create a remark node based on the current cursor and the one provided.protected NodeLexer.makeString(int start, int end) Create a string node based on the current cursor and the one provided.protected NodeCreate 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 NodeLexer.parseJsp(int start) Parse a java server page node.protected NodeLexer.parsePI(int start) Parse an XML processing instruction.protected NodeLexer.parseRemark(int start, boolean quotesmart) Parse a comment.protected NodeLexer.parseString(int start, boolean quotesmart) Parse a string node.protected NodeLexer.parseTag(int start) Parse a tag. -
Uses of Node in org.htmlparser.nodes
Classes in org.htmlparser.nodes that implement NodeModifier and TypeClassDescriptionclassThe concrete base class for all types of nodes (tags, text remarks).classThe remark tag is identified and represented by this class.classTagNode represents a generic tag.classNormal 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 TypeMethodDescriptionbooleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.booleanPredicate to determine whether or not to keep the given node.protected voidHasAttributeFilterWrapper.addAttributes(Set set, Node node) Add the attribute names from the node to the set of attribute names.protected voidHasAttributeFilterWrapper.addAttributeValues(Set set, Node node) Add the attribute values from the node to the set of attribute values.protected voidAdd 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 TypeClassDescriptionclassAppletTag represents an <Applet> tag.classBaseHrefTag represents an <Base> tag.classA Body Tag.classA bullet tag.classA bullet list tag.classThe base class for tags that have an end tag.classA definition list tag (dl).classA definition list bullet tag (either DD or DT).classA div tag.classThe HTML Document Declaration Tag can identify <!DOCTYPE> tags.classRepresents a FORM tag.classIdentifies an frame set tag.classIdentifies a frame tagclassA heading (h1 - h6) tag.classA head tag.classA html tag.classIdentifies an image tag.classAn input tag in a form.classThe JSP/ASP tags like <%...%> can be identified by this class.classA label tag.classIdentifies a link tag.classA Meta TagclassObjectTag represents an <Object> tag.classAn option tag within a form.classA paragraph (p) tag.classThe XML processing instructions like <?xml ...classA script tag.classA select tag within a form.classA span tag.classA StyleTag represents a <style> tag.classA table column tag.classA table header tag.classA table row tag.classA table tag.classA text area tag within a form.classA 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 ofNodeobjects.Methods in org.htmlparser.tags with parameters of type NodeModifier and TypeMethodDescriptionintCompositeTag.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 NodeNodeTreeWalker.mCurrentNodeThe current Node element, which will be a child of the root Node, or null.protected NodeNodeTreeWalker.mNextNodeThe next Node element after the current Node element.protected NodeNodeTreeWalker.mRootNodeThe 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 NodeNodeTreeWalker.getNextNodeBreadthFirst()Traverses to the next Node from the current Node using breadth-first tree traversalprotected NodeNodeTreeWalker.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 TypeMethodDescriptionvoidbooleanCheck to see if the NodeList contains the supplied Node.voidNodeList.copyToNodeArray(Node[] array) static Node[]ParserUtils.findTypeInNode(Node node, Class type) Search given node and pick up any objects of given type.intFinds the index of the supplied Node.protected voidNodeTreeWalker.initRootNode(Node rootNode) Sets the root Node to be the given Node.voidInsert the given node at the head of the list.booleanRemove the supplied Node from the list.voidNodeTreeWalker.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