Uses of Interface
org.htmlparser.Node
-
Packages that use Node Package Description org.htmlparser The basic API classes which will be used by most developers when working with the HTML Parser.org.htmlparser.filters The filters package contains example filters to select only desired nodes.org.htmlparser.lexer The lexer package is the base level I/O subsystem.org.htmlparser.nodes The nodes package has the concrete node implementations.org.htmlparser.parserapplications.filterbuilder org.htmlparser.parserapplications.filterbuilder.wrappers org.htmlparser.sax The sax package implements a SAX (Simple API for XML) parser for HTML.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. -
-
Uses of Node in org.htmlparser
Subinterfaces of Node in org.htmlparser Modifier and Type Interface Description interfaceRemarkThis interface represents a comment in the HTML document.interfaceTagThis interface represents a tag (<xxx yyy="zzz">) in the HTML document.interfaceTextThis interface represents a piece of the content of the HTML document.Methods in org.htmlparser that return Node Modifier and Type Method Description NodeNode. getFirstChild()Get the first child of this node.NodeNode. getLastChild()Get the last child of this node.NodeNode. getNextSibling()Get the next sibling to this node.NodeNode. getParent()Get the parent of this node.NodeNode. getPreviousSibling()Get the previous sibling to this node.Methods in org.htmlparser with parameters of type Node Modifier and Type Method Description booleanNodeFilter. accept(Node node)Predicate to determine whether or not to keep the given node.voidNode. setParent(Node node)Sets the parent of this node. -
Uses of Node in org.htmlparser.filters
Fields in org.htmlparser.filters declared as Node Modifier and Type Field Description protected NodeIsEqualFilter. mNodeThe node to match.Methods in org.htmlparser.filters with parameters of type Node Modifier and Type Method Description booleanAndFilter. accept(Node node)Accept nodes that are acceptable to all of its predicate filters.booleanCssSelectorNodeFilter. accept(Node node)Accept nodes that match the selector expression.booleanHasAttributeFilter. accept(Node node)Accept tags with a certain attribute.booleanHasChildFilter. accept(Node node)Accept tags with children acceptable to the filter.booleanHasParentFilter. accept(Node node)Accept tags with parent acceptable to the filter.booleanHasSiblingFilter. accept(Node node)Accept tags with a sibling acceptable to the filter.booleanIsEqualFilter. accept(Node node)Accept the node.booleanLinkRegexFilter. accept(Node node)Accept nodes that are a LinkTag and have a URL that matches the regex pattern supplied in the constructor.booleanLinkStringFilter. accept(Node node)Accept nodes that are a LinkTag and have a URL that matches the pattern supplied in the constructor.booleanNodeClassFilter. accept(Node node)Accept nodes that are assignable from the class provided in the constructor.booleanNotFilter. accept(Node node)Accept nodes that are not acceptable to the predicate filter.booleanOrFilter. accept(Node node)Accept nodes that are acceptable to any of its predicate filters.booleanRegexFilter. accept(Node node)Accept string nodes that match the regular expression.booleanStringFilter. accept(Node node)Accept string nodes that contain the string.booleanTagNameFilter. accept(Node node)Accept nodes that are tags and have a matching tag name.booleanXorFilter. accept(Node node)Accept nodes that are acceptable to an odd number of its predicate filters.Constructors in org.htmlparser.filters with parameters of type Node Constructor Description IsEqualFilter(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 Node Modifier and Type Method Description protected 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 NodeLexer. makeTag(int start, int end, java.util.Vector attributes)Create a tag node based on the current cursor and the one provided.NodeLexer. nextNode()Get the next node from the source.NodeLexer. nextNode(boolean quotesmart)Get the next node from the source.NodeLexer. parseCDATA()Return CDATA as a text node.NodeLexer. 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 Node Modifier and Type Class Description classAbstractNodeThe concrete base class for all types of nodes (tags, text remarks).classRemarkNodeThe remark tag is identified and represented by this class.classTagNodeTagNode represents a generic tag.classTextNodeNormal text in the HTML document is represented by this class.Fields in org.htmlparser.nodes declared as Node Modifier and Type Field Description protected NodeAbstractNode. parentThe parent of this node.Methods in org.htmlparser.nodes that return Node Modifier and Type Method Description NodeAbstractNode. getFirstChild()Get the first child of this node.NodeAbstractNode. getLastChild()Get the last child of this node.NodeAbstractNode. getNextSibling()Get the next sibling to this node.NodeAbstractNode. getParent()Get the parent of this node.NodeAbstractNode. getPreviousSibling()Get the previous sibling to this node.Methods in org.htmlparser.nodes with parameters of type Node Modifier and Type Method Description voidAbstractNode. setParent(Node node)Sets the parent of this node. -
Uses of Node in org.htmlparser.parserapplications.filterbuilder
Fields in org.htmlparser.parserapplications.filterbuilder declared as Node Modifier and Type Field Description protected NodeHtmlTreeModel. mRootThe rootNode. -
Uses of Node in org.htmlparser.parserapplications.filterbuilder.wrappers
Methods in org.htmlparser.parserapplications.filterbuilder.wrappers with parameters of type Node Modifier and Type Method Description booleanAndFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanHasAttributeFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanHasChildFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanHasParentFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanHasSiblingFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanNodeClassFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanNotFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanOrFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanRegexFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanStringFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.booleanTagNameFilterWrapper. accept(Node node)Predicate to determine whether or not to keep the given node.protected voidHasAttributeFilterWrapper. addAttributes(java.util.Set set, Node node)Add the attribute names from the node to the set of attribute names.protected voidHasAttributeFilterWrapper. addAttributeValues(java.util.Set set, Node node)Add the attribute values from the node to the set of attribute values.protected voidTagNameFilterWrapper. addName(java.util.Set set, Node node)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 Modifier and Type Method Description protected voidXMLReader. doSAX(Node node)Process nodes recursively on the DocumentHandler. -
Uses of Node in org.htmlparser.scanners
Methods in org.htmlparser.scanners with parameters of type Node Modifier and Type Method Description protected voidCompositeTagScanner. addChild(Tag parent, Node child)Add a child to the given tag. -
Uses of Node in org.htmlparser.tags
Classes in org.htmlparser.tags that implement Node Modifier and Type Class Description classAppletTagAppletTag represents an <Applet> tag.classBaseHrefTagBaseHrefTag represents an <Base> tag.classBodyTagA Body Tag.classBulletA bullet tag.classBulletListA bullet list tag.classCompositeTagThe base class for tags that have an end tag.classDefinitionListA definition list tag (dl).classDefinitionListBulletA definition list bullet tag (either DD or DT).classDivA div tag.classDoctypeTagThe HTML Document Declaration Tag can identify <!DOCTYPE> tags.classFormTagRepresents a FORM tag.classFrameSetTagIdentifies an frame set tag.classFrameTagIdentifies a frame tagclassHeadingTagA heading (h1 - h6) tag.classHeadTagA head tag.classHtmlA html tag.classImageTagIdentifies an image tag.classInputTagAn input tag in a form.classJspTagThe JSP/ASP tags like <%...%> can be identified by this class.classLabelTagA label tag.classLinkTagIdentifies a link tag.classMetaTagA Meta TagclassObjectTagObjectTag represents an <Object> tag.classOptionTagAn option tag within a form.classParagraphTagA paragraph (p) tag.classProcessingInstructionTagThe XML processing instructions like <?xml ...classScriptTagA script tag.classSelectTagA select tag within a form.classSpanA span tag.classStyleTagA StyleTag represents a <style> tag.classTableColumnA table column tag.classTableHeaderA table header tag.classTableRowA table row tag.classTableTagA table tag.classTextareaTagA text area tag within a form.classTitleTagA title tag.Methods in org.htmlparser.tags that return Node Modifier and Type Method Description NodeCompositeTag. childAt(int index)Get child at given indexNodeCompositeTag. 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 Node Modifier and Type Method Description intCompositeTag. 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 Node Modifier and Type Field Description protected 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 Node Modifier and Type Method Description NodeNodeList. elementAt(int i)static Node[]ParserUtils. findTypeInNode(Node node, java.lang.Class type)Search given node and pick up any objects of given type.NodeNodeTreeWalker. 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 traversalNodeNodeTreeWalker. getRootNode()Get the root Node that defines the scope of the tree to traverse.NodeIteratorImpl. nextNode()Get the next node.NodeNodeIterator. nextNode()Get the next node.NodeNodeTreeWalker. nextNode()Traverses to the next Node from the current Node, using either depth-first or breadth-first tree traversal as appropriate.NodeSimpleNodeIterator. nextNode()Get the next node.NodeNodeList. remove(int index)Remove the node at index.Node[]NodeList. toNodeArray()Methods in org.htmlparser.util with parameters of type Node Modifier and Type Method Description voidNodeList. add(Node node)booleanNodeList. contains(Node node)Check to see if the NodeList contains the supplied Node.voidNodeList. copyToNodeArray(Node[] array)static Node[]ParserUtils. findTypeInNode(Node node, java.lang.Class type)Search given node and pick up any objects of given type.intNodeList. indexOf(Node node)Finds the index of the supplied Node.protected voidNodeTreeWalker. initRootNode(Node rootNode)Sets the root Node to be the given Node.voidNodeList. prepend(Node node)Insert the given node at the head of the list.booleanNodeList. remove(Node node)Remove 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 Node Constructor Description NodeList(Node node)Create 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 Modifier and Type Method Description Node[]ObjectFindingVisitor. getTags()Node[]TagFindingVisitor. getTags(int index)
-