public class CssSelectorNodeFilter extends java.lang.Object implements NodeFilter
Todo: more thorough testing, any relevant pseudo-classes, css3 features
Constructor and Description |
---|
CssSelectorNodeFilter(java.lang.String selector)
Create a Cascading Style Sheet node filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Node node)
Accept nodes that match the selector expression.
|
static java.lang.String |
unescape(java.lang.String escaped)
Replace escape sequences in a string.
|
public CssSelectorNodeFilter(java.lang.String selector)
selector
- The selector expression.public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.true
if the node matches,
false
otherwise.public static java.lang.String unescape(java.lang.String escaped)
escaped
- The string to examine.HTML Parser is an open source library released under LGPL.