|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Node | |
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.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.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.tests | This package contains testcases for the html package. |
org.htmlparser.tests.lexerTests | |
org.htmlparser.tests.scannersTests | This package contains testcases for the scanners package. |
org.htmlparser.tests.utilTests | This package contains testcases for the util package. |
org.htmlparser.tests.visitorsTests | |
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 | |
interface |
Remark
This interface represents a comment in the HTML document. |
interface |
Tag
This interface represents a tag (<xxx yyy="zzz">) in the HTML document. |
interface |
Text
This interface represents a piece of the content of the HTML document. |
Methods in org.htmlparser that return Node | |
Node |
Node.getParent()
Get the parent of this node. |
Node |
Node.getFirstChild()
Get the first child of this node. |
Node |
Node.getLastChild()
Get the last child of this node. |
Node |
Node.getPreviousSibling()
Get the previous sibling to this node. |
Node |
Node.getNextSibling()
Get the next sibling to this node. |
Node[] |
Parser.extractAllNodesThatAre(java.lang.Class nodeType)
Deprecated. Use extractAllNodesThatMatch (new NodeClassFilter (cls)). |
Methods in org.htmlparser with parameters of type Node | |
void |
Node.setParent(Node node)
Sets the parent of this node. |
boolean |
NodeFilter.accept(Node node)
Predicate to determine whether or not to keep the given node. |
Uses of Node in org.htmlparser.filters |
Fields in org.htmlparser.filters declared as Node | |
protected Node |
IsEqualFilter.mNode
The node to match. |
Methods in org.htmlparser.filters with parameters of type Node | |
boolean |
AndFilter.accept(Node node)
Accept nodes that are acceptable to all of it's predicate filters. |
boolean |
CssSelectorNodeFilter.accept(Node node)
Accept nodes that match the selector expression. |
boolean |
HasAttributeFilter.accept(Node node)
Accept tags with a certain attribute. |
boolean |
HasChildFilter.accept(Node node)
Accept tags with children acceptable to the filter. |
boolean |
HasParentFilter.accept(Node node)
Accept tags with parent acceptable to the filter. |
boolean |
HasSiblingFilter.accept(Node node)
Accept tags with a sibling acceptable to the filter. |
boolean |
IsEqualFilter.accept(Node node)
Accept the node. |
boolean |
LinkRegexFilter.accept(Node node)
Accept nodes that are a LinkTag and have a URL that matches the regex pattern supplied in the constructor. |
boolean |
LinkStringFilter.accept(Node node)
Accept nodes that are a LinkTag and have a URL that matches the pattern supplied in the constructor. |
boolean |
NodeClassFilter.accept(Node node)
Accept nodes that are assignable from the class provided in the constructor. |
boolean |
NotFilter.accept(Node node)
Accept nodes that are not acceptable to the predicate filter. |
boolean |
OrFilter.accept(Node node)
Accept nodes that are acceptable to any of it's predicate filters. |
boolean |
RegexFilter.accept(Node node)
Accept string nodes that match the regular expression. |
boolean |
StringFilter.accept(Node node)
Accept string nodes that contain the string. |
boolean |
TagNameFilter.accept(Node node)
Accept nodes that are tags and have a matching tag name. |
Constructors in org.htmlparser.filters with parameters of type Node | |
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 | |
Node |
Lexer.nextNode()
Get the next node from the source. |
Node |
Lexer.nextNode(boolean quotesmart)
Get the next node from the source. |
protected Node |
Lexer.parseString(int start,
boolean quotesmart)
Parse a string node. |
protected Node |
Lexer.makeString(int start,
int end)
Create a string node based on the current cursor and the one provided. |
protected Node |
Lexer.parseTag(int start)
Parse a tag. |
protected Node |
Lexer.makeTag(int start,
int end,
java.util.Vector attributes)
Create a tag node based on the current cursor and the one provided. |
protected Node |
Lexer.parseRemark(int start,
boolean quotesmart)
Parse a comment. |
protected Node |
Lexer.makeRemark(int start,
int end)
Create a remark node based on the current cursor and the one provided. |
protected Node |
Lexer.parseJsp(int start)
Parse a java server page node. |
Node |
Lexer.parseCDATA()
Return CDATA as a text node. |
Node |
Lexer.parseCDATA(boolean quotesmart)
Return CDATA as a text node. |
Uses of Node in org.htmlparser.nodeDecorators |
Classes in org.htmlparser.nodeDecorators that implement Node | |
class |
AbstractNodeDecorator
Deprecated. Use direct subclasses or dynamic proxies instead. Use either direct subclasses of the appropriate node and set them on the
Here is an example of how to use dynamic proxies to accomplish the same effect as using decorators to wrap Text nodes: import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import org.htmlparser.Parser; import org.htmlparser.PrototypicalNodeFactory; import org.htmlparser.Text; import org.htmlparser.nodes.TextNode; import org.htmlparser.util.ParserException; public class TextProxy implements InvocationHandler { protected Object mObject; public static Object newInstance (Object object) { Class cls; cls = object.getClass (); return (Proxy.newProxyInstance ( cls.getClassLoader (), cls.getInterfaces (), new TextProxy (object))); } private TextProxy (Object object) { mObject = object; } public Object invoke (Object proxy, Method m, Object[] args) throws Throwable { Object result; String name; try { result = m.invoke (mObject, args); name = m.getName (); if (name.equals ("clone")) result = newInstance (result); // wrap the cloned object else if (name.equals ("doSemanticAction")) // or other methods System.out.println (mObject); // do the needful on the TextNode } catch (InvocationTargetException e) { throw e.getTargetException (); } catch (Exception e) { throw new RuntimeException ("unexpected invocation exception: " + e.getMessage()); } finally { } return (result); } public static void main (String[] args) throws ParserException { // create the wrapped text node and set it as the prototype Text text = (Text) TextProxy.newInstance (new TextNode (null, 0, 0)); PrototypicalNodeFactory factory = new PrototypicalNodeFactory (); factory.setTextPrototype (text); // perform the parse Parser parser = new Parser (args[0]); parser.setNodeFactory (factory); parser.parse (null); } } |
class |
DecodingNode
Deprecated. Use direct subclasses or dynamic proxies instead. Use either direct subclasses of the appropriate node and set them on the
|
class |
EscapeCharacterRemovingNode
Deprecated. Use direct subclasses or dynamic proxies instead. Use either direct subclasses of the appropriate node and set them on the
|
class |
NonBreakingSpaceConvertingNode
Deprecated. Use direct subclasses or dynamic proxies instead. Use either direct subclasses of the appropriate node and set them on the
|
Methods in org.htmlparser.nodeDecorators that return Node | |
Node |
AbstractNodeDecorator.getParent()
Deprecated. |
Node |
AbstractNodeDecorator.getFirstChild()
Deprecated. |
Node |
AbstractNodeDecorator.getLastChild()
Deprecated. |
Node |
AbstractNodeDecorator.getPreviousSibling()
Deprecated. |
Node |
AbstractNodeDecorator.getNextSibling()
Deprecated. |
Methods in org.htmlparser.nodeDecorators with parameters of type Node | |
void |
AbstractNodeDecorator.setParent(Node node)
Deprecated. |
Uses of Node in org.htmlparser.nodes |
Classes in org.htmlparser.nodes that implement Node | |
class |
AbstractNode
The concrete base class for all types of nodes (tags, text remarks). |
class |
RemarkNode
The remark tag is identified and represented by this class. |
class |
TagNode
TagNode represents a generic tag. |
class |
TextNode
Normal text in the HTML document is represented by this class. |
Fields in org.htmlparser.nodes declared as Node | |
protected Node |
AbstractNode.parent
The parent of this node. |
Methods in org.htmlparser.nodes that return Node | |
Node |
AbstractNode.getParent()
Get the parent of this node. |
Node |
AbstractNode.getFirstChild()
Get the first child of this node. |
Node |
AbstractNode.getLastChild()
Get the last child of this node. |
Node |
AbstractNode.getPreviousSibling()
Get the previous sibling to this node. |
Node |
AbstractNode.getNextSibling()
Get the next sibling to this node. |
Methods in org.htmlparser.nodes with parameters of type Node | |
void |
AbstractNode.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 | |
protected Node |
HtmlTreeModel.mRoot
The root Node . |
Uses of Node in org.htmlparser.parserapplications.filterbuilder.wrappers |
Methods in org.htmlparser.parserapplications.filterbuilder.wrappers with parameters of type Node | |
boolean |
AndFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
protected void |
HasAttributeFilterWrapper.addAttributes(java.util.Set set,
Node node)
Add the attribute names from the node to the set of attribute names. |
protected void |
HasAttributeFilterWrapper.addAttributeValues(java.util.Set set,
Node node)
Add the attribute values from the node to the set of attribute values. |
boolean |
HasAttributeFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
HasChildFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
HasParentFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
HasSiblingFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
NodeClassFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
NotFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
OrFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
RegexFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
boolean |
StringFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
protected void |
TagNameFilterWrapper.addName(java.util.Set set,
Node node)
Add the tag name and it's children's tag names to the set of tag names. |
boolean |
TagNameFilterWrapper.accept(Node node)
Predicate to determine whether or not to keep the given node. |
Uses of Node in org.htmlparser.sax |
Methods in org.htmlparser.sax with parameters of type Node | |
protected void |
XMLReader.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 | |
protected void |
CompositeTagScanner.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 | |
class |
AppletTag
AppletTag represents an <Applet> tag. |
class |
BaseHrefTag
BaseHrefTag represents an <Base> tag. |
class |
BodyTag
A Body Tag. |
class |
Bullet
A bullet tag. |
class |
BulletList
A bullet list tag. |
class |
CompositeTag
The base class for tags that have an end tag. |
class |
DefinitionList
A definition list tag (dl). |
class |
DefinitionListBullet
A definition list bullet tag (either DD or DT). |
class |
Div
A div tag. |
class |
DoctypeTag
The HTML Document Declaration Tag can identify <!DOCTYPE> tags. |
class |
FormTag
Represents a FORM tag. |
class |
FrameSetTag
Identifies an frame set tag. |
class |
FrameTag
Identifies a frame tag |
class |
HeadingTag
A heading (h1 - h6) tag. |
class |
HeadTag
A head tag. |
class |
Html
A html tag. |
class |
ImageTag
Identifies an image tag. |
class |
InputTag
An input tag in a form. |
class |
JspTag
The JSP/ASP tags like <%...%> can be identified by this class. |
class |
LabelTag
A label tag. |
class |
LinkTag
Identifies a link tag. |
class |
MetaTag
A Meta Tag |
class |
ObjectTag
ObjectTag represents an <Object> tag. |
class |
OptionTag
An option tag within a form. |
class |
ParagraphTag
A paragraph (p) tag. |
class |
ScriptTag
A script tag. |
class |
SelectTag
A select tag within a form. |
class |
Span
A span tag. |
class |
StyleTag
A StyleTag represents a <style> tag. |
class |
TableColumn
A table column tag. |
class |
TableHeader
A table header tag. |
class |
TableRow
A table row tag. |
class |
TableTag
A table tag. |
class |
TextareaTag
A text area tag within a form. |
class |
TitleTag
A title tag. |
Methods in org.htmlparser.tags that return Node | |
Node |
CompositeTag.getChild(int index)
Get the child of this node at the given position. |
Node[] |
CompositeTag.getChildrenAsNodeArray()
Get the children as an array of Node objects. |
Node |
CompositeTag.childAt(int index)
Get child at given index |
Methods in org.htmlparser.tags with parameters of type Node | |
int |
CompositeTag.findPositionOf(Node searchNode)
Returns the node number of a child node given the node object. |
Uses of Node in org.htmlparser.tests |
Fields in org.htmlparser.tests declared as Node | |
protected Node[] |
ParserTestCase.node
|
Methods in org.htmlparser.tests with parameters of type Node | |
void |
ParserTestCase.assertSameType(java.lang.String displayMessage,
Node expected,
Node actual)
|
void |
ParserTestCase.assertTagEquals(java.lang.String displayMessage,
Node expected,
Node actual)
|
protected void |
ParserTestCase.assertNodeCount(java.lang.String message,
int expectedLength,
Node[] nodes)
|
Uses of Node in org.htmlparser.tests.lexerTests |
Methods in org.htmlparser.tests.lexerTests with parameters of type Node | |
void |
LexerTests.checkTagNames(Node node)
Check the tag name for one of the ones expected on the page. |
Uses of Node in org.htmlparser.tests.scannersTests |
Classes in org.htmlparser.tests.scannersTests that implement Node | |
static class |
CompositeTagScannerTest.AnotherTag
|
static class |
CompositeTagScannerTest.CustomTag
|
Uses of Node in org.htmlparser.tests.utilTests |
Methods in org.htmlparser.tests.utilTests with parameters of type Node | |
void |
CharacterTranslationTest.Generate.gather(Node node,
java.lang.StringBuffer buffer)
|
Uses of Node in org.htmlparser.tests.visitorsTests |
Methods in org.htmlparser.tests.visitorsTests with parameters of type Node | |
void |
TagFindingVisitorTest.assertTagNameShouldBe(java.lang.String message,
Node node,
java.lang.String expectedTagName)
|
Uses of Node in org.htmlparser.util |
Methods in org.htmlparser.util that return Node | |
Node |
IteratorImpl.nextNode()
Get the next node. |
Node |
NodeIterator.nextNode()
Get the next node. |
Node |
NodeList.elementAt(int i)
|
Node[] |
NodeList.toNodeArray()
|
Node |
NodeList.remove(int index)
Remove the node at index. |
static Node[] |
ParserUtils.findTypeInNode(Node node,
java.lang.Class type)
Search given node and pick up any objects of given type. |
Node |
SimpleNodeIterator.nextNode()
Get the next node. |
Methods in org.htmlparser.util with parameters of type Node | |
void |
NodeList.add(Node node)
|
void |
NodeList.prepend(Node node)
Insert the given node at the head of the list. |
void |
NodeList.copyToNodeArray(Node[] array)
|
boolean |
NodeList.contains(Node node)
Check to see if the NodeList contains the supplied Node. |
int |
NodeList.indexOf(Node node)
Finds the index of the supplied Node. |
boolean |
NodeList.remove(Node node)
Remove the supplied Node from the list. |
static Node[] |
ParserUtils.findTypeInNode(Node node,
java.lang.Class type)
Search given node and pick up any objects of given type. |
Constructors in org.htmlparser.util with parameters of type Node | |
NodeList(Node node)
Create a one element node list. |
Uses of Node in org.htmlparser.visitors |
Methods in org.htmlparser.visitors that return Node | |
Node[] |
ObjectFindingVisitor.getTags()
|
Node[] |
TagFindingVisitor.getTags(int index)
|
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |