|
HTML Parser Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.filters.CssSelectorNodeFilter
public class CssSelectorNodeFilter
A NodeFilter that accepts nodes based on whether they match a CSS2 selector. Refer to http://www.w3.org/TR/REC-CSS2/selector.html for syntax.
Todo: more thorough testing, any relevant pseudo-classes, css3 features
Constructor Summary | |
---|---|
CssSelectorNodeFilter(String selector)
Create a Cascading Style Sheet node filter. |
Method Summary | |
---|---|
boolean |
accept(Node node)
Accept nodes that match the selector expression. |
static String |
unescape(String escaped)
Replace escape sequences in a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CssSelectorNodeFilter(String selector)
selector
- The selector expression.Method Detail |
---|
public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.
true
if the node matches,
false
otherwise.public static String unescape(String escaped)
escaped
- The string to examine.
|
© 2006 Derrick Oswald Sep 17, 2006
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HTML Parser is an open source library released under Common Public License. |